LMongo\Eloquent\Model::setConnection PHP Method

setConnection() public method

Set the connection associated with the model.
public setConnection ( string $name ) : void
$name string
return void
    public function setConnection($name)
    {
        $this->connection = $name;
    }
Model