@@ 377-384 (lines=8) @@ | ||
374 | * |
|
375 | * @return array |
|
376 | */ |
|
377 | public static function allBySql($sql, $values = null) |
|
378 | { |
|
379 | if (!is_array($values)) { |
|
380 | $values = \array_slice(\func_get_args(), 1); |
|
381 | } |
|
382 | ||
383 | return parent::all($sql, $values); |
|
384 | } |
|
385 | ||
386 | /** |
|
387 | * Obtiene el primer registro de la consulta sql. |
|
@@ 394-401 (lines=8) @@ | ||
391 | * |
|
392 | * @return array |
|
393 | */ |
|
394 | public static function firstBySql($sql, $values = null) |
|
395 | { |
|
396 | if (!is_array($values)) { |
|
397 | $values = \array_slice(\func_get_args(), 1); |
|
398 | } |
|
399 | ||
400 | return parent::first($sql, $values); |
|
401 | } |
|
402 | } |
|
403 |