Skip to content
Snippets Groups Projects
Commit f19ee35d authored by Daniel Berthereau's avatar Daniel Berthereau
Browse files

Fixed upgrade for Omeka S v2.0.

parent 0d01559e
No related branches found
No related tags found
No related merge requests found
......@@ -77,19 +77,19 @@ class OaiPmhRepositoryTokenAdapter extends AbstractEntityAdapter
{
if (isset($query['id'])) {
$qb->andWhere($qb->expr()->eq(
$this->getEntityClass() . '.id',
'omeka_root.id',
$this->createNamedParameter($qb, $query['id']))
);
}
if (isset($query['verb'])) {
$qb->andWhere($qb->expr()->eq(
$this->getEntityClass() . '.verb',
'omeka_root.verb',
$this->createNamedParameter($qb, $query['verb']))
);
}
if (isset($query['expired']) && $query['expired']) {
$qb->andWhere($qb->expr()->lte(
$this->getEntityClass() . '.expiration',
'omeka_root.expiration',
$this->createNamedParameter($qb, (new DateTime)->format(DateTime::ATOM))
));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment