@@ -335,6 +335,9 @@ |
||
| 335 | 335 | } |
| 336 | 336 | } |
| 337 | 337 | |
| 338 | + /** |
|
| 339 | + * @param SplObjectStorage $entities |
|
| 340 | + */ |
|
| 338 | 341 | protected function tryHydration($entities, $sub, $field, &$v) |
| 339 | 342 | { |
| 340 | 343 | $tableName = $entities[$sub]->getName(); |
@@ -176,7 +176,7 @@ |
||
| 176 | 176 | { |
| 177 | 177 | $query = $this->generateQuery($collection); |
| 178 | 178 | |
| 179 | - $withExtraList = (array)$withExtra; |
|
| 179 | + $withExtraList = (array) $withExtra; |
|
| 180 | 180 | |
| 181 | 181 | $withExtraList = array_merge($withExtraList, $query); |
| 182 | 182 | |
@@ -83,8 +83,9 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | $condition = $this->getConditionArray($collection); |
| 85 | 85 | |
| 86 | - foreach ($allCollections as $name => $coll) |
|
| 87 | - $condition += $this->getConditionArray($coll, true); |
|
| 86 | + foreach ($allCollections as $name => $coll) { |
|
| 87 | + $condition += $this->getConditionArray($coll, true); |
|
| 88 | + } |
|
| 88 | 89 | |
| 89 | 90 | return $condition; |
| 90 | 91 | } |
@@ -102,8 +103,9 @@ discard block |
||
| 102 | 103 | $condition = array('_id' => $this->createMongoId($condition)); |
| 103 | 104 | } |
| 104 | 105 | |
| 105 | - if ($prefix) |
|
| 106 | - $condition = static::prefixArrayKeys($condition, $collection->getName() . "."); |
|
| 106 | + if ($prefix) { |
|
| 107 | + $condition = static::prefixArrayKeys($condition, $collection->getName() . "."); |
|
| 108 | + } |
|
| 107 | 109 | |
| 108 | 110 | return $condition; |
| 109 | 111 | } |
@@ -117,8 +119,9 @@ discard block |
||
| 117 | 119 | { |
| 118 | 120 | $new = array(); |
| 119 | 121 | |
| 120 | - foreach ($array as $key => $value) |
|
| 121 | - $new["{$prefix}{$key}"] = $value; |
|
| 122 | + foreach ($array as $key => $value) { |
|
| 123 | + $new["{$prefix}{$key}"] = $value; |
|
| 124 | + } |
|
| 122 | 125 | |
| 123 | 126 | return $new; |
| 124 | 127 | } |