示例#1
0
 /**
  * Get the associated Brand object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     Brand The associated Brand object.
  * @throws     PropelException
  */
 public function getBrand(PropelPDO $con = null)
 {
     if ($this->aBrand === null && ($this->brand_id !== "" && $this->brand_id !== null)) {
         $this->aBrand = BrandPeer::retrieveByPk($this->brand_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->aBrand->addSeriess($this);
         		 */
     }
     return $this->aBrand;
 }