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