/** * Remove payment * * @param \Corvus\EventBundle\Entity\Payment $payment */ public function removePayment(\Corvus\EventBundle\Entity\Payment $payment) { $this->payments->removeElement($payment); }
/** * @return Payment[] **/ public function getPayments() { $criteria = Criteria::create()->orderBy(array('date' => Criteria::ASC)); return $this->payments->matching($criteria); }