Ejemplo n.º 1
0
 /**
  * Declares an association between this object and a Featurevalue object.
  *
  * @param      Featurevalue $v
  * @return     RoomHasFeaturevalue The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setFeaturevalue(Featurevalue $v = null)
 {
     if ($v === null) {
         $this->setFeaturevalueId(NULL);
     } else {
         $this->setFeaturevalueId($v->getId());
     }
     $this->aFeaturevalue = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Featurevalue object, it will not be re-added.
     if ($v !== null) {
         $v->addRoomHasFeaturevalue($this);
     }
     return $this;
 }