fixed bug when doctrine collection is passed
Merge branch 'bugfix/find-match-no-array' into develop