/** * Remove lead. * * @param Lead $lead */ public function removeLead(Lead $lead) { $leadEntity = $lead->getLead(); $this->changes['leads']['removed'][$leadEntity->getId()] = $leadEntity->getPrimaryIdentifier(); $this->leads->removeElement($lead); }
/** * {@inheritDoc} */ public function wasManuallyAdded() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'wasManuallyAdded', array()); return parent::wasManuallyAdded(); }