Merge pull request #1084 from joecwallace/pivot_fix

Fixing a bug with saving data to pivot table
This commit is contained in:
Taylor Otwell 2012-09-01 17:40:14 -07:00
commit 4a60981582
1 changed files with 1 additions and 11 deletions

View File

@ -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 @@ public function table()
return $this->pivot_table; return $this->pivot_table;
} }
/**
* Get the connection used by the pivot table.
*
* @return string
*/
public function connection()
{
return $this->connection;
}
} }