src/Knp/FriendlyContexts/Context/AliceContext.php 1 location
|
@@ 73-80 (lines=8) @@
|
70 |
|
foreach ($loader->getCache() as $cache) { |
71 |
|
list($values, $entity) = $cache; |
72 |
|
$reflection = new \ReflectionClass($entity); |
73 |
|
do { |
74 |
|
$this |
75 |
|
->getRecordBag() |
76 |
|
->getCollection($reflection->getName()) |
77 |
|
->attach($entity, $values) |
78 |
|
; |
79 |
|
$reflection = $reflection->getParentClass(); |
80 |
|
} while (false !== $reflection); |
81 |
|
} |
82 |
|
$loader->clearCache(); |
83 |
|
} |
src/Knp/FriendlyContexts/Context/EntityContext.php 1 location
|
@@ 26-33 (lines=8) @@
|
23 |
|
$entity = new $entityName; |
24 |
|
$reflection = new \ReflectionClass($entity); |
25 |
|
|
26 |
|
do { |
27 |
|
$this |
28 |
|
->getRecordBag() |
29 |
|
->getCollection($reflection->getName()) |
30 |
|
->attach($entity, $values) |
31 |
|
; |
32 |
|
$reflection = $reflection->getParentClass(); |
33 |
|
} while (false !== $reflection); |
34 |
|
|
35 |
|
$this |
36 |
|
->getEntityHydrator() |