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
$conn = $this->getOption('resource')->getConnection();
$identifier = $this->_options['resource']->getIdentifier();
Doctrine_Query::create()->delete()
->from($class)
->where($identifier . ' = ?', array($data[$identifier]))
->execute();;
$q = Doctrine_Query::create()->delete()
->from($class);
foreach ((array) $identifier as $id) {
$q->addWhere($id . ' = ?', array($data[$id]));
}
$q->execute();
if ($this->_options['batchUpdates'] === true) {
$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