1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 14:16:39 +02:00

DibiTranslator: temporary removed delimite() cache [Closes #21]

This commit is contained in:
David Grudl
2010-08-25 01:06:02 +02:00
parent a64c2270d8
commit 310d43f404

View File

@@ -55,7 +55,6 @@ final class DibiTranslator extends DibiObject
public function __construct(IDibiDriver $driver) public function __construct(IDibiDriver $driver)
{ {
$this->driver = $driver; $this->driver = $driver;
$this->identifiers = new DibiLazyStorage(array($this, 'delimite'));
} }
@@ -68,6 +67,7 @@ final class DibiTranslator extends DibiObject
*/ */
public function translate(array $args) public function translate(array $args)
{ {
$this->identifiers = new DibiLazyStorage(array($this, 'delimite'));
$args = array_values($args); $args = array_values($args);
while (count($args) === 1 && is_array($args[0])) { // implicit array expansion while (count($args) === 1 && is_array($args[0])) { // implicit array expansion
$args = array_values($args[0]); $args = array_values($args[0]);