Skip to content
Snippets Groups Projects
Commit 9082f13d authored by efalcy's avatar efalcy
Browse files

Correction moissonage bib num : erreur sur le deleteBy

parent 70620ecf
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(array('url_origine = \'' . self::BASE_URL . '\'',
'id_origine not in (\'' . implode("', '", $this->getHarvestedIds()) . '\')'));
->deleteBy(['url_origine' => self::BASE_URL,
'where' => 'id_origine not in (\'' . implode("', '", $this->getHarvestedIds()) . '\')']);
}
......
......@@ -56,8 +56,8 @@ class Class_WebService_BibNumerique_Numilog extends Class_WebService_BibNumeriqu
protected function _deleteNonHarvested() {
if (0 < count($this->getHarvestedIds()))
Class_Album::getLoader()
->deleteBy(array('url_origine = \'' . self::BASE_URL . '\'',
'id_origine not in (\'' . implode("', '", $this->getHarvestedIds()) . '\')'));
->deleteBy(['url_origine' => self::BASE_URL,
'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 . '\'',
'id_origine not in (\'' . implode("', '", $ids) . '\')']);
Class_Album::deleteBy(['url_origine' => self::BASE_URL,
'where' => '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 . '\'',
'id_origine not in (\'' . implode("', '", $ids) . '\')']);
Class_Album::deleteBy(['url_origine' => self::BASE_URL,
'where' => '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