1 code examples of PHP Oro\Bundle\SalesBundle\Entity\LeadEmail extracted from open source projects
protected function onSuccess(LeadEmail $entity, Lead $lead)
{
$entity->setOwner($lead);
$this->manager->persist($entity);
$this->manager->flush();
}