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