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
4822f847
Commit
4822f847
authored
May 03, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass delete method through eloquent query.
parent
aca2a2ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
query.php
laravel/database/eloquent/query.php
+3
-3
No files found.
laravel/database/eloquent/query.php
View file @
4822f847
...
@@ -34,7 +34,7 @@ class Query {
...
@@ -34,7 +34,7 @@ class Query {
*/
*/
public
$passthru
=
array
(
public
$passthru
=
array
(
'lists'
,
'only'
,
'insert'
,
'insert_get_id'
,
'update'
,
'increment'
,
'lists'
,
'only'
,
'insert'
,
'insert_get_id'
,
'update'
,
'increment'
,
'decrement'
,
'count'
,
'min'
,
'max'
,
'avg'
,
'sum'
,
'de
lete'
,
'de
crement'
,
'count'
,
'min'
,
'max'
,
'avg'
,
'sum'
,
);
);
/**
/**
...
@@ -267,8 +267,8 @@ class Query {
...
@@ -267,8 +267,8 @@ class Query {
$result
=
call_user_func_array
(
array
(
$this
->
table
,
$method
),
$parameters
);
$result
=
call_user_func_array
(
array
(
$this
->
table
,
$method
),
$parameters
);
// Some methods may get their results straight from the fluent query
// Some methods may get their results straight from the fluent query
// builder
,
such as the aggregate methods. If the called method is
// builder such as the aggregate methods. If the called method is
// one of these, we will return the result straight away.
// one of these, we will
just
return the result straight away.
if
(
in_array
(
$method
,
$this
->
passthru
))
if
(
in_array
(
$method
,
$this
->
passthru
))
{
{
return
$result
;
return
$result
;
...
...
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