Пример #1
0
 /**
  * Get the associated Sesion object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     Sesion The associated Sesion object.
  * @throws     PropelException
  */
 public function getSesion(PropelPDO $con = null)
 {
     if ($this->aSesion === null && $this->id_sesion !== null) {
         $c = new Criteria(SesionPeer::DATABASE_NAME);
         $c->add(SesionPeer::ID_SESION, $this->id_sesion);
         $this->aSesion = SesionPeer::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->aSesion->addSesionLogs($this);
         		 */
     }
     return $this->aSesion;
 }