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