/** * Remove events. * * @param \Mautic\CampaignBundle\Entity\Event $event */ public function removeEvent(\Mautic\CampaignBundle\Entity\Event $event) { $this->changes['events']['removed'][$event->getId()] = $event->getName(); $this->events->removeElement($event); }
/** * {@inheritDoc} */ public function getId() { if ($this->__isInitialized__ === false) { return (int) parent::getId(); } $this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', array()); return parent::getId(); }