fixed merge conflicts.
This commit is contained in:
commit
5196d015b8
|
@ -201,16 +201,6 @@ public static function find($id)
|
||||||
return static::query(get_called_class())->where('id', '=', $id)->first();
|
return static::query(get_called_class())->where('id', '=', $id)->first();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the first model result
|
|
||||||
*
|
|
||||||
* @return mixed
|
|
||||||
*/
|
|
||||||
private function _first()
|
|
||||||
{
|
|
||||||
return (count($results = $this->take(1)->_get()) > 0) ? reset($results) : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get an array of models from the database.
|
* Get an array of models from the database.
|
||||||
*
|
*
|
||||||
|
@ -221,6 +211,16 @@ private function _get()
|
||||||
return Hydrator::hydrate($this);
|
return Hydrator::hydrate($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the first model result
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
private function _first()
|
||||||
|
{
|
||||||
|
return (count($results = $this->take(1)->_get()) > 0) ? reset($results) : null;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve the query for a 1:1 relationship.
|
* Retrieve the query for a 1:1 relationship.
|
||||||
*
|
*
|
||||||
|
|
|
@ -48,4 +48,4 @@ function elapsed()
|
||||||
| 3... 2... 1... Lift-off!
|
| 3... 2... 1... Lift-off!
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
require $laravel.'/laravel.php';
|
require $laravel.'/laravel.php';
|
||||||
|
|
Loading…
Reference in New Issue