Exemplo n.º 1
0
 /**
  * Get the associated Taula1 object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     Taula1 The associated Taula1 object.
  * @throws     PropelException
  */
 public function getTaula1(PropelPDO $con = null)
 {
     if ($this->aTaula1 === null && ($this->id_actividad !== "" && $this->id_actividad !== null)) {
         $c = new Criteria(Taula1Peer::DATABASE_NAME);
         $c->add(Taula1Peer::T1ID, $this->id_actividad);
         $this->aTaula1 = Taula1Peer::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->aTaula1->addEmpresas($this);
         		 */
     }
     return $this->aTaula1;
 }