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