src/Oro/Bundle/EmailBundle/Sync/KnownEmailAddressCheckerFactory.php 1 location
|
@@ 71-81 (lines=11) @@
|
| 68 |
|
* |
| 69 |
|
* @return EntityManager |
| 70 |
|
*/ |
| 71 |
|
protected function getEntityManager() |
| 72 |
|
{ |
| 73 |
|
/** @var EntityManager $em */ |
| 74 |
|
$em = $this->doctrine->getManager(); |
| 75 |
|
if (!$em->isOpen()) { |
| 76 |
|
$this->doctrine->resetManager(); |
| 77 |
|
$em = $this->doctrine->getManager(); |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
return $em; |
| 81 |
|
} |
| 82 |
|
} |
| 83 |
|
|
src/Oro/Bundle/ImapBundle/Sync/ImapEmailSynchronizationProcessorFactory.php 1 location
|
@@ 57-67 (lines=11) @@
|
| 54 |
|
* |
| 55 |
|
* @return EntityManager |
| 56 |
|
*/ |
| 57 |
|
protected function getEntityManager() |
| 58 |
|
{ |
| 59 |
|
/** @var EntityManager $em */ |
| 60 |
|
$em = $this->doctrine->getManager(); |
| 61 |
|
if (!$em->isOpen()) { |
| 62 |
|
$this->doctrine->resetManager(); |
| 63 |
|
$em = $this->doctrine->getManager(); |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
return $em; |
| 67 |
|
} |
| 68 |
|
} |
| 69 |
|
|
src/Oro/Bundle/TrackingBundle/Processor/TrackingProcessor.php 1 location
|
@@ 696-706 (lines=11) @@
|
| 693 |
|
* |
| 694 |
|
* @return EntityManager |
| 695 |
|
*/ |
| 696 |
|
protected function getEntityManager() |
| 697 |
|
{ |
| 698 |
|
/** @var EntityManager $em */ |
| 699 |
|
$em = $this->doctrine->getManager(); |
| 700 |
|
if (!$em->isOpen()) { |
| 701 |
|
$this->doctrine->resetManager(); |
| 702 |
|
$em = $this->doctrine->getManager(); |
| 703 |
|
} |
| 704 |
|
|
| 705 |
|
return $em; |
| 706 |
|
} |
| 707 |
|
|
| 708 |
|
/** |
| 709 |
|
* Get max retries to identify tracking visit |
src/Oro/Bundle/EmailBundle/Sync/AbstractEmailSynchronizer.php 1 location
|
@@ 272-282 (lines=11) @@
|
| 269 |
|
* |
| 270 |
|
* @return EntityManager |
| 271 |
|
*/ |
| 272 |
|
protected function getEntityManager() |
| 273 |
|
{ |
| 274 |
|
/** @var EntityManager $em */ |
| 275 |
|
$em = $this->doctrine->getManager(); |
| 276 |
|
if (!$em->isOpen()) { |
| 277 |
|
$this->doctrine->resetManager(); |
| 278 |
|
$em = $this->doctrine->getManager(); |
| 279 |
|
} |
| 280 |
|
|
| 281 |
|
return $em; |
| 282 |
|
} |
| 283 |
|
|
| 284 |
|
/** |
| 285 |
|
* Makes sure $this->knownEmailAddressChecker initialized |