/** * Sets a single ChildModule object as related to this object by a one-to-one relationship. * * @param ChildModule $v ChildModule * @return $this|\keeko\core\model\Package The current object (for fluent API support) * @throws PropelException */ public function setModule(ChildModule $v = null) { $this->singleModule = $v; // Make sure that that the passed-in ChildModule isn't already associated with this object if ($v !== null && $v->getPackage(null, false) === null) { $v->setPackage($this); } return $this; }