DbConnection::__construct(): Set prefix if configured
This commit is contained in:
parent
aa56f3010c
commit
2b67683e00
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue