Commit eb9842dc authored by zYne's avatar zYne

--no commit message

--no commit message
parent ed8b89fc
...@@ -93,10 +93,12 @@ class Doctrine_Search extends Doctrine_Plugin ...@@ -93,10 +93,12 @@ class Doctrine_Search extends Doctrine_Plugin
$conn = $this->getOption('resource')->getConnection(); $conn = $this->getOption('resource')->getConnection();
$identifier = $this->_options['resource']->getIdentifier(); $identifier = $this->_options['resource']->getIdentifier();
Doctrine_Query::create()->delete() $q = Doctrine_Query::create()->delete()
->from($class) ->from($class);
->where($identifier . ' = ?', array($data[$identifier])) foreach ((array) $identifier as $id) {
->execute();; $q->addWhere($id . ' = ?', array($data[$id]));
}
$q->execute();
if ($this->_options['batchUpdates'] === true) { if ($this->_options['batchUpdates'] === true) {
$index = new $class(); $index = new $class();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment