| @@ 358-365 (lines=8) @@ | ||
| 355 | * |
|
| 356 | * @return array |
|
| 357 | */ |
|
| 358 | public static function allBySql($sql, $values = null) |
|
| 359 | { |
|
| 360 | if (!is_array($values)) { |
|
| 361 | $values = \array_slice(\func_get_args(), 1); |
|
| 362 | } |
|
| 363 | ||
| 364 | return parent::all($sql, $values); |
|
| 365 | } |
|
| 366 | ||
| 367 | /** |
|
| 368 | * Obtiene el primer registro de la consulta sql. |
|
| @@ 375-382 (lines=8) @@ | ||
| 372 | * |
|
| 373 | * @return array |
|
| 374 | */ |
|
| 375 | public static function firstBySql($sql, $values = null) |
|
| 376 | { |
|
| 377 | if (!is_array($values)) { |
|
| 378 | $values = \array_slice(\func_get_args(), 1); |
|
| 379 | } |
|
| 380 | ||
| 381 | return parent::first($sql, $values); |
|
| 382 | } |
|
| 383 | } |
|
| 384 | ||