예제 #1
0
 /**
  * Get the associated PuserKuser object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     PuserKuser The associated PuserKuser object.
  * @throws     PropelException
  */
 public function getPuserKuserRelatedByPuserId(PropelPDO $con = null)
 {
     if ($this->aPuserKuserRelatedByPuserId === null && ($this->puser_id !== "" && $this->puser_id !== null)) {
         $c = new Criteria(PuserKuserPeer::DATABASE_NAME);
         $c->add(PuserKuserPeer::PUSER_ID, $this->puser_id);
         $this->aPuserKuserRelatedByPuserId = PuserKuserPeer::doSelectOne($c, $con);
         /* 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->aPuserKuserRelatedByPuserId->addPuserRolesRelatedByPuserId($this);
         		 */
     }
     return $this->aPuserKuserRelatedByPuserId;
 }