@@ 346-353 (lines=8) @@ | ||
343 | * |
|
344 | * @return array |
|
345 | */ |
|
346 | public static function allBySql($sql, $values = null) |
|
347 | { |
|
348 | if (!is_array($values)) { |
|
349 | $values = \array_slice(\func_get_args(), 1); |
|
350 | } |
|
351 | ||
352 | return parent::all($sql, $values); |
|
353 | } |
|
354 | ||
355 | /** |
|
356 | * Obtiene el primer registro de la consulta sql. |
|
@@ 363-370 (lines=8) @@ | ||
360 | * |
|
361 | * @return array |
|
362 | */ |
|
363 | public static function firstBySql($sql, $values = null) |
|
364 | { |
|
365 | if (!is_array($values)) { |
|
366 | $values = \array_slice(\func_get_args(), 1); |
|
367 | } |
|
368 | ||
369 | return parent::first($sql, $values); |
|
370 | } |
|
371 | } |
|
372 |