Refactor Search to Doctrine 2