Replaced underscores in repositories

This commit is contained in:
Andrey
2013-08-14 15:21:04 +02:00
parent c1910a188e
commit 4fe6de5ffc
2 changed files with 4 additions and 4 deletions

View File

@@ -34,15 +34,15 @@ class SessionRepository extends EntityRepository
$base_ids = array_keys($user->ACL()->get_granted_base());
$dql = 'SELECT f FROM Entities\Feed f
WHERE f.base_id IS NULL ';
WHERE f.baseId IS NULL ';
if (count($base_ids) > 0) {
$dql .= ' OR f.base_id
$dql .= ' OR f.baseId
IN (' . implode(', ', $base_ids) . ') ';
}
$dql .= ' OR f.public = true
ORDER BY f.updated_on DESC';
ORDER BY f.updatedOn DESC';
$query = $this->_em->createQuery($dql);