| @@ 351-358 (lines=8) @@ | ||
| 348 | * |
|
| 349 | * @return array |
|
| 350 | */ |
|
| 351 | public static function allBySql($sql, $values = null) |
|
| 352 | { |
|
| 353 | if (!is_array($values)) { |
|
| 354 | $values = \array_slice(\func_get_args(), 1); |
|
| 355 | } |
|
| 356 | ||
| 357 | return parent::all($sql, $values); |
|
| 358 | } |
|
| 359 | ||
| 360 | /** |
|
| 361 | * Obtiene el primer registro de la consulta sql. |
|
| @@ 368-375 (lines=8) @@ | ||
| 365 | * |
|
| 366 | * @return array |
|
| 367 | */ |
|
| 368 | public static function firstBySql($sql, $values = null) |
|
| 369 | { |
|
| 370 | if (!is_array($values)) { |
|
| 371 | $values = \array_slice(\func_get_args(), 1); |
|
| 372 | } |
|
| 373 | ||
| 374 | return parent::first($sql, $values); |
|
| 375 | } |
|
| 376 | } |
|
| 377 | ||