コード例 #1
0
 /**
  * Get the associated ChildAccount object
  *
  * @param  ConnectionInterface $con Optional Connection object.
  * @return ChildAccount The associated ChildAccount object.
  * @throws PropelException
  */
 public function getAccount(ConnectionInterface $con = null)
 {
     if ($this->aAccount === null && $this->id !== null) {
         $this->aAccount = ChildAccountQuery::create()->findPk($this->id, $con);
         // Because this foreign key represents a one-to-one relationship, we will create a bi-directional association.
         $this->aAccount->setProfile($this);
     }
     return $this->aAccount;
 }