@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | |
| 147 | 147 | /** |
| 148 | 148 | * @method |
| 149 | - * @param type $name |
|
| 149 | + * @param string $name |
|
| 150 | 150 | * @param type $arguments |
| 151 | 151 | * @return type |
| 152 | 152 | */ |
@@ -176,6 +176,10 @@ discard block |
||
| 176 | 176 | return $this->retrieveItem($name); |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | + /** |
|
| 180 | + * @param Relationship[] $relationships |
|
| 181 | + * @param integer $depth |
|
| 182 | + */ |
|
| 179 | 183 | private function expandArrayValue($array, $relationships, $depth, $index = null) { |
| 180 | 184 | foreach ($relationships as $name => $relationship) { |
| 181 | 185 | $array[$name] = $this->fetchRelatedFields($relationship, $index)->toArray($depth); |
@@ -336,6 +340,9 @@ discard block |
||
| 336 | 340 | |
| 337 | 341 | } |
| 338 | 342 | |
| 343 | + /** |
|
| 344 | + * @param string $id |
|
| 345 | + */ |
|
| 339 | 346 | public function postSaveCallback($id) { |
| 340 | 347 | |
| 341 | 348 | } |
@@ -360,7 +367,7 @@ discard block |
||
| 360 | 367 | |
| 361 | 368 | /** |
| 362 | 369 | * |
| 363 | - * @return DataAdapter |
|
| 370 | + * @return DriverAdapter |
|
| 364 | 371 | */ |
| 365 | 372 | public function getAdapter() { |
| 366 | 373 | $this->initialize(); |
@@ -63,7 +63,9 @@ |
||
| 63 | 63 | private $initialized = false; |
| 64 | 64 | |
| 65 | 65 | private function initialize() { |
| 66 | - if($this->initialized) return; |
|
| 66 | + if($this->initialized) { |
|
| 67 | + return; |
|
| 68 | + } |
|
| 67 | 69 | $this->context = ORMContext::getInstance(); |
| 68 | 70 | $this->container = $this->context->getContainer(); |
| 69 | 71 | $this->adapter = $this->container->resolve(DriverAdapter::class); |