/** * @param ChildCredit $credit The ChildCredit object to add. */ protected function doAddCredit(ChildCredit $credit) { $this->collCredits[] = $credit; $credit->setSales($this); }