Commit 4a609815 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1084 from joecwallace/pivot_fix

Fixing a bug with saving data to pivot table
parents 017c65c0 d31f89d4
...@@ -26,7 +26,7 @@ class Pivot extends Model { ...@@ -26,7 +26,7 @@ class Pivot extends Model {
public function __construct($table, $connection = null) public function __construct($table, $connection = null)
{ {
$this->pivot_table = $table; $this->pivot_table = $table;
$this->connection = $connection; static::$connection = $connection;
parent::__construct(array(), true); parent::__construct(array(), true);
} }
...@@ -41,14 +41,4 @@ class Pivot extends Model { ...@@ -41,14 +41,4 @@ class Pivot extends Model {
return $this->pivot_table; 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
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