1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-11 16:44:30 +02:00

- DibiConnection: insert() and update() accepts ArrayObject

This commit is contained in:
David Grudl
2009-06-19 11:28:42 +00:00
parent 74178a5596
commit e52cee8cbc
3 changed files with 13 additions and 5 deletions

View File

@@ -126,7 +126,7 @@ class DibiFluent extends DibiObject implements IDataSource
} elseif ($arg instanceof self) {
$args = array_merge(array('('), $arg->_export(), array(')'));
} elseif (is_array($arg)) { // any array
} elseif (is_array($arg) || $arg instanceof ArrayObject) { // any array
if (isset(self::$modifiers[$clause])) {
$args = array(self::$modifiers[$clause], $arg);