/** * Declares an association between this object and a ChildRulesetEntity object. * * @param ChildRulesetEntity $v * @return $this|\ECP\RulesetRuleRow The current object (for fluent API support) * @throws PropelException */ public function setRulesetEntity(ChildRulesetEntity $v = null) { if ($v === null) { $this->setRulesetentityid(NULL); } else { $this->setRulesetentityid($v->getId()); } $this->aRulesetEntity = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildRulesetEntity object, it will not be re-added. if ($v !== null) { $v->addRulesetRuleRow($this); } return $this; }