@@ -66,6 +66,9 @@ discard block |
||
| 66 | 66 | self::$qbConfig = $config; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | + /** |
|
| 70 | + * @return null|Connection |
|
| 71 | + */ |
|
| 69 | 72 | public static function getQueryBuilderConnection() |
| 70 | 73 | { |
| 71 | 74 | if (!self::$qbConnection) { |
@@ -119,7 +122,7 @@ discard block |
||
| 119 | 122 | * Gets a parameter |
| 120 | 123 | * |
| 121 | 124 | * @param string $name The parameter name |
| 122 | - * @return mixed The parameter value |
|
| 125 | + * @return string The parameter value |
|
| 123 | 126 | */ |
| 124 | 127 | public static function getParameter($name) |
| 125 | 128 | { |
@@ -229,7 +232,7 @@ discard block |
||
| 229 | 232 | } |
| 230 | 233 | |
| 231 | 234 | /** |
| 232 | - * @param $kernel |
|
| 235 | + * @param AppKernel $kernel |
|
| 233 | 236 | */ |
| 234 | 237 | public static function setKernel($kernel) |
| 235 | 238 | { |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | |
| 9 | 9 | use BZIon\Cache\ModelCache; |
| 10 | 10 | use Pixie\Connection; |
| 11 | -use Pixie\QueryBuilder\QueryBuilderHandler; |
|
| 12 | 11 | use Symfony\Component\DependencyInjection\ContainerInterface; |
| 13 | 12 | use Symfony\Component\EventDispatcher\EventDispatcher; |
| 14 | 13 | use Symfony\Component\Form\FormFactory; |
@@ -81,6 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | /** |
| 83 | 83 | * {@inheritdoc} |
| 84 | + * @param integer $limit |
|
| 84 | 85 | */ |
| 85 | 86 | public function limit($limit) |
| 86 | 87 | { |
@@ -189,7 +190,7 @@ discard block |
||
| 189 | 190 | * |
| 190 | 191 | * @throws \Pixie\Exception |
| 191 | 192 | * |
| 192 | - * @return array |
|
| 193 | + * @return Model[] |
|
| 193 | 194 | */ |
| 194 | 195 | public function getModels($fastFetch = false) |
| 195 | 196 | { |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | * Query the database to get the eager column values for the Model |
| 238 | 238 | * |
| 239 | 239 | * @param $id int The ID of the model to fetch |
| 240 | - * @return array|null The results or null if a model wasn't found |
|
| 240 | + * @return null|stdClass The results or null if a model wasn't found |
|
| 241 | 241 | */ |
| 242 | 242 | protected static function fetchColumnValues($id) |
| 243 | 243 | { |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | * @param string $column The name of the column that should be tested |
| 325 | 325 | * @param array|mixed $possible_values List of acceptable values |
| 326 | 326 | * @param bool $negate Whether to search if the value of $column does NOT belong to the $possible_values array |
| 327 | - * @param string|string[] $select The name of the column(s) that the returned array should contain |
|
| 327 | + * @param string $select The name of the column(s) that the returned array should contain |
|
| 328 | 328 | * @param string $additional_query Additional parameters to be passed to the MySQL query (e.g. `WHERE id = 5`) |
| 329 | 329 | * @param string $table The database table which will be used for queries |
| 330 | 330 | * |
@@ -391,7 +391,7 @@ discard block |
||
| 391 | 391 | * Get a formatted string with a comma separated column list with table/alias prefixes if necessary. |
| 392 | 392 | * |
| 393 | 393 | * @param string|null $prefix The table name or SQL alias to be prepend to these columns |
| 394 | - * @param array $columns The columns to format |
|
| 394 | + * @param string[] $columns The columns to format |
|
| 395 | 395 | * |
| 396 | 396 | * @return string |
| 397 | 397 | */ |