@@ 366-373 (lines=8) @@ | ||
363 | * |
|
364 | * @return array |
|
365 | */ |
|
366 | public static function allBySql($sql, $values = null) |
|
367 | { |
|
368 | if (!is_array($values)) { |
|
369 | $values = \array_slice(\func_get_args(), 1); |
|
370 | } |
|
371 | ||
372 | return parent::all($sql, $values); |
|
373 | } |
|
374 | ||
375 | /** |
|
376 | * Obtiene el primer registro de la consulta sql. |
|
@@ 383-390 (lines=8) @@ | ||
380 | * |
|
381 | * @return array |
|
382 | */ |
|
383 | public static function firstBySql($sql, $values = null) |
|
384 | { |
|
385 | if (!is_array($values)) { |
|
386 | $values = \array_slice(\func_get_args(), 1); |
|
387 | } |
|
388 | ||
389 | return parent::first($sql, $values); |
|
390 | } |
|
391 | } |
|
392 |