This commit is contained in:
parent
ed8b89fc3b
commit
eb9842dcec
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user