#2914 fixed symfony2 autocomplete

There was a bug in the symfony2 generalization rewrite which causes the autocomplete feature not to work as intended. Here is a fix