@@ 130-137 (lines=8) @@ | ||
127 | } |
|
128 | ||
129 | $relatedEntities = []; |
|
130 | foreach ($this->with as $relatedEntityName => $cascadeWith) { |
|
131 | if (empty((array)$relatedEntityIds[$relatedEntityName])) { |
|
132 | continue; |
|
133 | } |
|
134 | ||
135 | $criteria = $this->relatedRepository[$relatedEntityName]->createCriteria(['id.in' => (array)$relatedEntityIds[$relatedEntityName]]); |
|
136 | $relatedEntities[$relatedEntityName] = $this->relatedRepository[$relatedEntityName]->findMany($criteria); |
|
137 | } |
|
138 | ||
139 | $relatedField = $this->getRelatedField($relatedEntityName); |
|
140 | ||
@@ 203-210 (lines=8) @@ | ||
200 | } |
|
201 | ||
202 | $relatedEntities = []; |
|
203 | foreach ($this->with as $relatedEntityName => $cascadeWith) { |
|
204 | if (empty((array)$relatedEntityIds[$relatedEntityName])) { |
|
205 | continue; |
|
206 | } |
|
207 | ||
208 | $criteria = $this->relatedRepository[$relatedEntityName]->createCriteria(['id.in' => (array)$relatedEntityIds[$relatedEntityName]]); |
|
209 | $relatedEntities[$relatedEntityName] = $this->relatedRepository[$relatedEntityName]->findMany($criteria); |
|
210 | } |
|
211 | ||
212 | $entitiesArgs = []; |
|
213 | foreach ($rows as &$row) { |