/** * Declares an association between this object and a ChildCustomer object. * * @param ChildCustomer $v * @return \CustomerBirthDate\Model\CustomerBirthDate The current object (for fluent API support) * @throws PropelException */ public function setCustomer(ChildCustomer $v = null) { if ($v === null) { $this->setId(NULL); } else { $this->setId($v->getId()); } $this->aCustomer = $v; // Add binding for other direction of this 1:1 relationship. if ($v !== null) { $v->setCustomerBirthDate($this); } return $this; }