Example #1
0
 /**
  * Declares an association between this object and a Config object.
  *
  * @param      Config $v
  * @return     FieldValue The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setConfig(Config $v = null)
 {
     if ($v === null) {
         $this->setConfigId(NULL);
     } else {
         $this->setConfigId($v->getId());
     }
     $this->aConfig = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Config object, it will not be re-added.
     if ($v !== null) {
         $v->addFieldValue($this);
     }
     return $this;
 }