Working with Symfony is hiding some details from what happens under the hood. I decided to revisit some topics without frameworks.
I found this very nice tutorial about creating an AJAX autocomplete search:
http://markonphp.com/autocomplete-php-jquery-mysql-part1/
The only things that I would add to this tutorial is that you can see each request and eventual errors using Firebug