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