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