Corcel\Model::setRelationConnection PHP Method

setRelationConnection() protected method

Set the connection name to model
protected setRelationConnection ( $model )
$model
    protected function setRelationConnection($model)
    {
        if ($model instanceof Eloquent) {
            $model->setConnection($this->getConnectionName());
        }
    }