/** * @param CreditEctsGlobal $creditEctsGlobal The creditEctsGlobal object to add. */ protected function doAddCreditEctsGlobal($creditEctsGlobal) { $this->collCreditEctsGlobals[]= $creditEctsGlobal; $creditEctsGlobal->setEleve($this); }
public function setCreditEctsGlobal($mention_ects) { $credit = $this->getCreditEctsGlobal(); if ($credit == null) { $credit = new CreditEctsGlobal(); $credit->setEleve($this); } $credit->setMention($mention_ects); return $credit->save(); }