public static function deleteByIds($ids) { foreach ($ids as $id) { $query = new DbQuery(); $query->delete('stock_mvt_reason_lang', 'id_stock_mvt_reason = "' . pSQL($id['id_stock_mvt_reason']) . '"'); Db::getInstance(_PS_USE_SQL_SLAVE_)->execute($query); $query = null; $query = new DbQuery(); $query->delete('stock_mvt_reason', 'id_stock_mvt_reason = "' . pSQL($id['id_stock_mvt_reason']) . '"'); Db::getInstance(_PS_USE_SQL_SLAVE_)->execute($query); } return true; }