|
@@ 109-116 (lines=8) @@
|
| 106 |
|
{ |
| 107 |
|
$uow = $eventArgs->getEntityManager()->getUnitOfWork(); |
| 108 |
|
|
| 109 |
|
foreach ($uow->getScheduledEntityInsertions() as $entity) { |
| 110 |
|
//If entity is a BusinessEntity or just a view |
| 111 |
|
if ($this->businessEntityHelper->findByEntityInstance($entity) || $entity instanceof View) { |
| 112 |
|
$this->flushedEntities[] = $entity; |
| 113 |
|
$this->insertedEntities[] = $entity; |
| 114 |
|
break; |
| 115 |
|
} |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
foreach ($uow->getScheduledEntityUpdates() as $entity) { |
| 119 |
|
//If entity is a BusinessEntity or just a view |
|
@@ 118-125 (lines=8) @@
|
| 115 |
|
} |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
foreach ($uow->getScheduledEntityUpdates() as $entity) { |
| 119 |
|
//If entity is a BusinessEntity or just a view |
| 120 |
|
if ($this->businessEntityHelper->findByEntityInstance($entity) || $entity instanceof View) { |
| 121 |
|
$this->updatedEntities[] = $entity; |
| 122 |
|
$this->flushedEntities[] = $entity; |
| 123 |
|
break; |
| 124 |
|
} |
| 125 |
|
} |
| 126 |
|
|
| 127 |
|
foreach ($uow->getScheduledEntityDeletions() as $entity) { |
| 128 |
|
//If entity is a BusinessEntity or just a view |
|
@@ 127-134 (lines=8) @@
|
| 124 |
|
} |
| 125 |
|
} |
| 126 |
|
|
| 127 |
|
foreach ($uow->getScheduledEntityDeletions() as $entity) { |
| 128 |
|
//If entity is a BusinessEntity or just a view |
| 129 |
|
if ($this->businessEntityHelper->findByEntityInstance($entity) || $entity instanceof View) { |
| 130 |
|
$this->deletedEntities[] = $entity; |
| 131 |
|
$this->flushedEntities[] = $entity; |
| 132 |
|
break; |
| 133 |
|
} |
| 134 |
|
} |
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
/** |