Example #1
0
 /**
  * Get the associated ChildPackage object
  *
  * @param  ConnectionInterface $con Optional Connection object.
  * @return ChildPackage The associated ChildPackage object.
  * @throws PropelException
  */
 public function getPackage(ConnectionInterface $con = null)
 {
     if ($this->aPackage === null && $this->id !== null) {
         $this->aPackage = ChildPackageQuery::create()->findPk($this->id, $con);
         // Because this foreign key represents a one-to-one relationship, we will create a bi-directional association.
         $this->aPackage->setModule($this);
     }
     return $this->aPackage;
 }