|
@@ 226-235 (lines=10) @@
|
| 223 |
|
$objects[$key]=$object; |
| 224 |
|
} |
| 225 |
|
|
| 226 |
|
if($loadManyToOne && \sizeof($manyToOneQueries)>0){ |
| 227 |
|
foreach ($manyToOneQueries as $key=>$conditions){ |
| 228 |
|
list($fkClass,$member,$fkField)=\explode("|", $key); |
| 229 |
|
$condition=\implode(" OR ", $conditions); |
| 230 |
|
$manyToOneObjects=self::getAll($fkClass,$condition,true,false,$useCache); |
| 231 |
|
foreach ($objects as $object){ |
| 232 |
|
self::affectsManyToOneFromArray($object,$member,$manyToOneObjects,$fkField); |
| 233 |
|
} |
| 234 |
|
} |
| 235 |
|
} |
| 236 |
|
|
| 237 |
|
if($loadOneToMany && \sizeof($oneToManyQueries)>0){ |
| 238 |
|
foreach ($oneToManyQueries as $key=>$conditions){ |
|
@@ 237-246 (lines=10) @@
|
| 234 |
|
} |
| 235 |
|
} |
| 236 |
|
|
| 237 |
|
if($loadOneToMany && \sizeof($oneToManyQueries)>0){ |
| 238 |
|
foreach ($oneToManyQueries as $key=>$conditions){ |
| 239 |
|
list($class,$member,$mappedBy)=\explode("|", $key); |
| 240 |
|
$condition=\implode(" OR ", $conditions); |
| 241 |
|
$manyObjects=self::getAll($class,$condition,true,false,$useCache); |
| 242 |
|
foreach ($objects as $object){ |
| 243 |
|
self::affectsOneToManyFromArray($object, $member,$manyObjects,$mappedBy); |
| 244 |
|
} |
| 245 |
|
} |
| 246 |
|
} |
| 247 |
|
return $objects; |
| 248 |
|
} |
| 249 |
|
|