ManaPHP\Mvc\Model\Manager::getWriteConnection PHP Method

getWriteConnection() public method

Returns the connection to write data related to a model
public getWriteConnection ( ManaPHP\Mvc\ModelInterface | string $model ) : ManaPHP\DbInterface
$model ManaPHP\Mvc\ModelInterface | string
return ManaPHP\DbInterface
    public function getWriteConnection($model)
    {
        $serviceName = $this->getWriteConnectionService($model);
        return $this->_dependencyInjector->getShared($serviceName);
    }