Commit 5196d015 authored by Taylor Otwell's avatar Taylor Otwell

fixed merge conflicts.

parents 6becbaba 6904cf11
......@@ -202,23 +202,23 @@ abstract class Model {
}
/**
* Get the first model result
* Get an array of models from the database.
*
* @return mixed
* @return array
*/
private function _first()
private function _get()
{
return (count($results = $this->take(1)->_get()) > 0) ? reset($results) : null;
return Hydrator::hydrate($this);
}
/**
* Get an array of models from the database.
* Get the first model result
*
* @return array
* @return mixed
*/
private function _get()
private function _first()
{
return Hydrator::hydrate($this);
return (count($results = $this->take(1)->_get()) > 0) ? reset($results) : null;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment