If you got for example the following Entities and relations:
PurchasedService * ---> 1 Service * ---> 1 ServiceCategory
how can you create a formType listing all entries from ServiceCategory within PurchasedServiceType?
As:
$builder
->add('servicecategory', 'entity', array(
'class' => 'InvoicingBundle:ServiceCategory',
'query_builder' => function(EntityRepository $er) {
return $er->createQueryBuilder('sc')
->orderBy('sc.serviceCategoryName', 'ASC');
},
))
Results in ERROR:
Neither the property "servicecategory" nor one of the methods "getServicecategory()", "isServicecategory()", "hasServicecategory()", "__get()" exist and have public access in...
I would expect to call the Entity ServiceCategory directly?