|
@@ -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;
|
|
|
- }
|
|
|
-
|
|
|
}
|