En tu lugar le buscaría la vuelta, para mi seria algo asi:
Código PHP:
Ver originalclass VehicleType
{
public function __construct(RepositoryInterface $repository)
{
$this->repository = $repository;
}
public function buildForm
(FormBuilderInterface
$builder, array $options) {
$builder
->add('entities', array(), array('choices' => $this->repository->findAll())) ;
}
}
new VehicleType($app['repository']);