예제 #1
0
 /**
  * Get the associated PcUser object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     PcUser The associated PcUser object.
  * @throws     PropelException
  */
 public function getPcUser(PropelPDO $con = null)
 {
     if ($this->aPcUser === null && $this->user_id !== null) {
         $this->aPcUser = PcUserPeer::retrieveByPk($this->user_id);
         // Because this foreign key represents a one-to-one relationship, we will create a bi-directional association.
         $this->aPcUser->setPcUserKey($this);
     }
     return $this->aPcUser;
 }