Skip to content
Snippets Groups Projects
Commit 39b79552 authored by efalcy's avatar efalcy
Browse files

Ressource Numerique moissonnage : Correction clause deleteBy

parent b68b7684
Branches
Tags
No related merge requests found
......@@ -139,8 +139,8 @@ class Class_WebService_BibNumerique_ArteVOD extends Class_WebService_BibNumeriqu
protected function _deleteNonHarvested() {
if (0 < count($this->getHarvestedIds()))
Class_Album::getLoader()
->deleteBy(['url_origine' => self::BASE_URL,
'where' => 'id_origine not in (\'' . implode("', '", $this->getHarvestedIds()) . '\')']);
->deleteBy(['where' => 'url_origine="'.self::BASE_URL.'" and id_origine not in (\'' . implode("', '", $this->getHarvestedIds()) . '\')']);
}
......
......@@ -54,10 +54,10 @@ class Class_WebService_BibNumerique_Numilog extends Class_WebService_BibNumeriqu
protected function _deleteNonHarvested() {
if (0 < count($this->getHarvestedIds()))
Class_Album::getLoader()
->deleteBy(['url_origine' => self::BASE_URL,
'id_origine not in (\'' . implode("', '", $this->getHarvestedIds()) . '\')']);
->deleteBy(['where' => 'url_origine="'.self::BASE_URL.'" and id_origine not in (\'' . implode("', '", $this->getHarvestedIds()) . '\')']);
}
......
......@@ -60,8 +60,8 @@ class Class_WebService_BibNumerique_ToutApprendre extends Class_WebService_BibNu
foreach($this->_albums as $album)
$ids []= $album->getIdOrigine();
Class_Album::deleteBy(['url_origine' => self::BASE_URL,
'where' => 'id_origine not in (\'' . implode("', '", $ids) . '\')']);
Class_Album::deleteBy(['where' => 'url_origine="'.self::BASE_URL.'" and id_origine not in (\''. implode("', '", $ids) . '\')']);
}
......
......@@ -62,8 +62,8 @@ class Class_WebService_BibNumerique_Vodeclic extends Class_WebService_BibNumeriq
foreach($this->_albums as $album)
$ids []= $album->getIdOrigine();
Class_Album::deleteBy(['url_origine' => self::BASE_URL,
'where' => 'id_origine not in (\'' . implode("', '", $ids) . '\')']);
Class_Album::deleteBy(['where' => 'url_origine="'.self::BASE_URL.'" and id_origine not in (\''. implode("', '", $ids) . '\')']);
}
......
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