Conditions | 3 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
61 | public function getIterator() |
||
62 | { |
||
63 | if (empty($this->entities)) { |
||
64 | foreach ($this->data as $data) { |
||
65 | /* |
||
66 | * Mass entity initialization. |
||
67 | */ |
||
68 | $this->entities[] = $this->orm->make( |
||
69 | $this->class, |
||
70 | $data, |
||
71 | ORMInterface::STATE_LOADED, |
||
72 | true |
||
73 | ); |
||
74 | } |
||
75 | } |
||
76 | |||
77 | return new \ArrayIterator($this->entities); |
||
78 | } |
||
79 | } |