| @@ 279-286 (lines=8) @@ | ||
| 276 | * |
|
| 277 | * @return array |
|
| 278 | */ |
|
| 279 | public static function allBySql($sql, $values = null) |
|
| 280 | { |
|
| 281 | if (!is_array($values)) { |
|
| 282 | $values = \array_slice(\func_get_args(), 1); |
|
| 283 | } |
|
| 284 | ||
| 285 | return parent::all($sql, $values); |
|
| 286 | } |
|
| 287 | ||
| 288 | /** |
|
| 289 | * Obtiene el primer registro de la consulta sql. |
|
| @@ 296-303 (lines=8) @@ | ||
| 293 | * |
|
| 294 | * @return array |
|
| 295 | */ |
|
| 296 | public static function firstBySql($sql, $values = null) |
|
| 297 | { |
|
| 298 | if (!is_array($values)) { |
|
| 299 | $values = \array_slice(\func_get_args(), 1); |
|
| 300 | } |
|
| 301 | ||
| 302 | return parent::first($sql, $values); |
|
| 303 | } |
|
| 304 | } |
|
| 305 | ||