Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
5196d015
Commit
5196d015
authored
Sep 15, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Plain Diff
fixed merge conflicts.
parents
6becbaba
6904cf11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
model.php
laravel/database/eloquent/model.php
+8
-8
No files found.
laravel/database/eloquent/model.php
View file @
5196d015
...
@@ -202,23 +202,23 @@ abstract class Model {
...
@@ -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
_
firs
t
()
private
function
_
ge
t
()
{
{
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
_
ge
t
()
private
function
_
firs
t
()
{
{
return
Hydrator
::
hydrate
(
$this
)
;
return
(
count
(
$results
=
$this
->
take
(
1
)
->
_get
())
>
0
)
?
reset
(
$results
)
:
null
;
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment