wip.. inject personSearch results in similaritySearch to avoid duplicates results

error message :
---------------
[Semantical Error] line 0, col 13 near 'p.id) FROM ChillPersonBundle:Person':
Error: 'p' is used outside the scope of its declaration.
This commit is contained in:
Mat
2018-11-08 14:26:08 +01:00
parent 99ca79d86e
commit ecf3f541ef
3 changed files with 30 additions and 6 deletions

View File

@@ -201,7 +201,7 @@ class PersonSearch extends AbstractSearch implements ContainerAwareInterface,
* @param array $terms
* @return \Doctrine\ORM\QueryBuilder
*/
protected function createQuery(array $terms)
public function createQuery(array $terms)
{
//get from cache
$cacheKey = md5(serialize($terms));