mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 20:43:25 +00:00
Replaced underscores in repositories
This commit is contained in:
@@ -34,15 +34,15 @@ class SessionRepository extends EntityRepository
|
|||||||
$base_ids = array_keys($user->ACL()->get_granted_base());
|
$base_ids = array_keys($user->ACL()->get_granted_base());
|
||||||
|
|
||||||
$dql = 'SELECT f FROM Entities\Feed f
|
$dql = 'SELECT f FROM Entities\Feed f
|
||||||
WHERE f.base_id IS NULL ';
|
WHERE f.baseId IS NULL ';
|
||||||
|
|
||||||
if (count($base_ids) > 0) {
|
if (count($base_ids) > 0) {
|
||||||
$dql .= ' OR f.base_id
|
$dql .= ' OR f.baseId
|
||||||
IN (' . implode(', ', $base_ids) . ') ';
|
IN (' . implode(', ', $base_ids) . ') ';
|
||||||
}
|
}
|
||||||
|
|
||||||
$dql .= ' OR f.public = true
|
$dql .= ' OR f.public = true
|
||||||
ORDER BY f.updated_on DESC';
|
ORDER BY f.updatedOn DESC';
|
||||||
|
|
||||||
$query = $this->_em->createQuery($dql);
|
$query = $this->_em->createQuery($dql);
|
||||||
|
|
||||||
|
@@ -38,7 +38,7 @@ class UserSettingRepository extends EntityRepository
|
|||||||
$qb->Where($qb->expr()->in('f.feed', $feeds));
|
$qb->Where($qb->expr()->in('f.feed', $feeds));
|
||||||
}
|
}
|
||||||
|
|
||||||
$qb->orderBy('f.updated_on', 'DESC');
|
$qb->orderBy('f.updatedOn', 'DESC');
|
||||||
|
|
||||||
if ($offsetStart) {
|
if ($offsetStart) {
|
||||||
$qb->setFirstResult(max(0, (int) $offsetStart));
|
$qb->setFirstResult(max(0, (int) $offsetStart));
|
||||||
|
Reference in New Issue
Block a user