title: Using a custom service in a form type in Symfony2
body: <p>In my Symfony2 project, I need to produce a list of existing tables in a db. Since not all tables are used as entities in my project, and the list itself needs to be a simple array and not an entity, I have written an sql statement for this. This sql-statement is embedded in a function in a custom service (and has been thoroughly tested).</p>
  
  <p>Now, in a form type I would like to populate a field with the result array of the function mentioned above. These become the options the user can choose from.</p>
  
  <p>My question is how can I access the service in my form type?</p>