/** * Get the associated Activitats object * * @param PropelPDO Optional Connection object. * @return Activitats The associated Activitats object. * @throws PropelException */ public function getActivitats(PropelPDO $con = null) { if ($this->aActivitats === null && $this->activitats_activitatid !== null) { $this->aActivitats = ActivitatsPeer::retrieveByPk($this->activitats_activitatid); /* 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->aActivitats->addHorariss($this); */ } return $this->aActivitats; }