Ejemplo n.º 1
0
 /**
  * Get the associated Featurevalue object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     Featurevalue The associated Featurevalue object.
  * @throws     PropelException
  */
 public function getFeaturevalue(PropelPDO $con = null)
 {
     if ($this->aFeaturevalue === null && $this->featurevalue_id !== null) {
         $c = new Criteria(FeaturevaluePeer::DATABASE_NAME);
         $c->add(FeaturevaluePeer::ID, $this->featurevalue_id);
         $this->aFeaturevalue = FeaturevaluePeer::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->aFeaturevalue->addRoomHasFeaturevalues($this);
         		 */
     }
     return $this->aFeaturevalue;
 }