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
d31f89d4
Commit
d31f89d4
authored
Aug 10, 2012
by
Joe Wallace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing a bug with saving data to pivot table
parent
f5123f93
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
pivot.php
laravel/database/eloquent/pivot.php
+1
-11
No files found.
laravel/database/eloquent/pivot.php
View file @
d31f89d4
...
...
@@ -26,7 +26,7 @@ class Pivot extends Model {
public
function
__construct
(
$table
,
$connection
=
null
)
{
$this
->
pivot_table
=
$table
;
$this
->
connection
=
$connection
;
static
::
$
connection
=
$connection
;
parent
::
__construct
(
array
(),
true
);
}
...
...
@@ -41,14 +41,4 @@ class Pivot extends Model {
return
$this
->
pivot_table
;
}
/**
* Get the connection used by the pivot table.
*
* @return string
*/
public
function
connection
()
{
return
$this
->
connection
;
}
}
\ No newline at end of file
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