@@ 339-346 (lines=8) @@ | ||
336 | * |
|
337 | * @return array |
|
338 | */ |
|
339 | public static function allBySql($sql, $values = null) |
|
340 | { |
|
341 | if (!is_array($values)) { |
|
342 | $values = \array_slice(\func_get_args(), 1); |
|
343 | } |
|
344 | ||
345 | return parent::all($sql, $values); |
|
346 | } |
|
347 | ||
348 | /** |
|
349 | * Obtiene el primer registro de la consulta sql. |
|
@@ 356-363 (lines=8) @@ | ||
353 | * |
|
354 | * @return array |
|
355 | */ |
|
356 | public static function firstBySql($sql, $values = null) |
|
357 | { |
|
358 | if (!is_array($values)) { |
|
359 | $values = \array_slice(\func_get_args(), 1); |
|
360 | } |
|
361 | ||
362 | return parent::first($sql, $values); |
|
363 | } |
|
364 | } |
|
365 |