예제 #1
0
 /**
  * Get the associated Series object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     Series The associated Series object.
  * @throws     PropelException
  */
 public function getSeries(PropelPDO $con = null)
 {
     if ($this->aSeries === null && ($this->series_id !== "" && $this->series_id !== null)) {
         $this->aSeries = SeriesPeer::retrieveByPk($this->series_id);
         /* The following can be used additionally to
         		   guarantee the related object contains a reference
         		   to this object.  This level of coupling may, however, be
         		   undesirable since it could result in an only partially populated collection
         		   in the referenced object.
         		   $this->aSeries->addModels($this);
         		 */
     }
     return $this->aSeries;
 }