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