| @@ 372-379 (lines=8) @@ | ||
| 369 | * |
|
| 370 | * @return array |
|
| 371 | */ |
|
| 372 | public static function allBySql($sql, $values = null) |
|
| 373 | { |
|
| 374 | if (!is_array($values)) { |
|
| 375 | $values = \array_slice(\func_get_args(), 1); |
|
| 376 | } |
|
| 377 | ||
| 378 | return parent::all($sql, $values); |
|
| 379 | } |
|
| 380 | ||
| 381 | /** |
|
| 382 | * Obtiene el primer registro de la consulta sql. |
|
| @@ 389-396 (lines=8) @@ | ||
| 386 | * |
|
| 387 | * @return array |
|
| 388 | */ |
|
| 389 | public static function firstBySql($sql, $values = null) |
|
| 390 | { |
|
| 391 | if (!is_array($values)) { |
|
| 392 | $values = \array_slice(\func_get_args(), 1); |
|
| 393 | } |
|
| 394 | ||
| 395 | return parent::first($sql, $values); |
|
| 396 | } |
|
| 397 | } |
|
| 398 | ||