Adapted autocomplete so that it works with associative result sets from Doctrine

...Doctrine