DbConnection::__construct(): Set prefix if configured

This commit is contained in:
Eric Lippmann 2014-10-20 13:43:03 +02:00
parent aa56f3010c
commit 2b67683e00
1 changed files with 3 additions and 0 deletions

View File

@ -64,6 +64,9 @@ class DbConnection implements Selectable
public function __construct(Zend_Config $config = null)
{
$this->config = $config;
if (isset($config->prefix)) {
$this->tablePrefix = $config->prefix;
}
$this->connect();
}