IN the AcmePizza BUndle this is working fine
->add(\'pizza\', \'entity\', array( \'class\' => \'Acme\\PizzaBundle\\Entity\\Pizza\',
Yes.
In your UserTaskType class, add the following method.
public function getDefaultOptions(array $options) { return array( 'data_class' => 'acme\myBundle\Entity\UserTask', 'query_builder' => function($repo) { return $repo->createQueryBuilder('p')->orderBy('p.name', 'ASC'); } ); }