예제 #1
0
 /**
  * Get the associated Formulario object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     Formulario The associated Formulario object.
  * @throws     PropelException
  */
 public function getFormulario(PropelPDO $con = null)
 {
     if ($this->aFormulario === null && $this->id_formulario !== null) {
         $c = new Criteria(FormularioPeer::DATABASE_NAME);
         $c->add(FormularioPeer::ID_FORMULARIO, $this->id_formulario);
         $this->aFormulario = FormularioPeer::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->aFormulario->addItems($this);
         		 */
     }
     return $this->aFormulario;
 }