Example #1
0
 /**
  * Get the associated Horario object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     Horario The associated Horario object.
  * @throws     PropelException
  */
 public function getHorario(PropelPDO $con = null)
 {
     if ($this->aHorario === null && $this->horario_id !== null) {
         $this->aHorario = HorarioPeer::retrieveByPk($this->horario_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->aHorario->addGradeunits($this);
         		 */
     }
     return $this->aHorario;
 }