@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | * |
| 62 | 62 | * The criteria include the criteria of the parent models. |
| 63 | 63 | * |
| 64 | - * @param Model|PrototypedBindings $model |
|
| 64 | + * @param Model $model |
|
| 65 | 65 | * |
| 66 | 66 | * @return array |
| 67 | 67 | */ |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | /** |
| 96 | 96 | * Returns the {@link CriterionList} instance associated with the specified model. |
| 97 | 97 | * |
| 98 | - * @param Model|ModelBindings $model |
|
| 98 | + * @param Model $model |
|
| 99 | 99 | * |
| 100 | 100 | * @return CriterionList |
| 101 | 101 | */ |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | * |
| 147 | 147 | * The model's {@link fetch_records} prototype method is used to retrieve the record. |
| 148 | 148 | * |
| 149 | - * @param Model|ModelBindings $model |
|
| 149 | + * @param Model $model |
|
| 150 | 150 | * @param array $conditions |
| 151 | 151 | * @param Fetcher $fetcher If the parameter `fetcher` is present, the {@link Fetcher} |
| 152 | 152 | * instance used to fetch the record is stored inside. |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use ICanBoogie\ActiveRecord; |
| 15 | 15 | use ICanBoogie\ActiveRecord\Model; |
| 16 | 16 | use ICanBoogie\Binding\PrototypedBindings; |
| 17 | -use ICanBoogie\Core; |
|
| 18 | 17 | use ICanBoogie\Facets\CriterionList; |
| 19 | 18 | use ICanBoogie\Facets\Fetcher; |
| 20 | 19 | use ICanBoogie\Facets\Fetcher\BasicFetcher; |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | */ |
| 156 | 156 | static public function fetch_record(Model $model, array $conditions, &$fetcher = null) |
| 157 | 157 | { |
| 158 | - $records = $model->fetch_records($conditions + [ 'limit' => 1 ]); |
|
| 158 | + $records = $model->fetch_records($conditions + ['limit' => 1]); |
|
| 159 | 159 | |
| 160 | 160 | if (!$records) |
| 161 | 161 | { |