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
                
                
                    
                                                
                                                    
                                |  | @@ 31-38 (lines=8) @@ | 
                                                            
                                    | 28 |  |             $entity     = new $entityName; | 
                                                            
                                    | 29 |  |             $reflection = new \ReflectionClass($entity); | 
                                                            
                                    | 30 |  |  | 
                                                            
                                    | 31 |  |             do { | 
                                                            
                                    | 32 |  |                 $this | 
                                                            
                                    | 33 |  |                     ->getRecordBag() | 
                                                            
                                    | 34 |  |                     ->getCollection($reflection->getName()) | 
                                                            
                                    | 35 |  |                     ->attach($entity, $values) | 
                                                            
                                    | 36 |  |                 ; | 
                                                            
                                    | 37 |  |                 $reflection = $reflection->getParentClass(); | 
                                                            
                                    | 38 |  |             } while (false !== $reflection); | 
                                                            
                                    | 39 |  |  | 
                                                            
                                    | 40 |  |             $this | 
                                                            
                                    | 41 |  |                 ->getEntityHydrator() |