Fix hidden use of repositories

This commit is contained in:
Romain Neutron
2014-02-27 17:26:33 +01:00
parent 6a06492679
commit 06f29575c7
8 changed files with 22 additions and 21 deletions

View File

@@ -188,9 +188,7 @@ class queries
{
$history = '<ul>';
$queries = $app['EM']
->getRepository('Phraseanet:UserQuery')
->findBy(['user' => $usrId], ['created' => 'ASC'], 25, 0);
$queries = $app['repo.user-queries']->findBy(['user' => $usrId], ['created' => 'ASC'], 25, 0);
foreach ($queries as $query) {
$history .= '<li onclick="doSpecialSearch(\'' . str_replace(["'", '"'], ["\'", '&quot;'], $query->getQuery()) . '\')">' . $query->getQuery() . '</li>';