/** * @ORM\PrePersist * @ORM\PreUpdate */ public function preSave(LifecycleEventArgs $args) { $this->checkAmounts(); parent::presave($args); $this->checkMustOccurrences(); }
/** * @ORM\PrePersist * @ORM\PreUpdate */ public function preSave(LifecycleEventArgs $args) { $this->checkAmounts(); parent::presave($args); $this->checkNumber($args); }