DatatableBundle
DatatableBundle copied to clipboard
How to access a method of the repository?
Example I need get record for
$res=$qb->getQuery()->getResult();
$email=$res[0]->getOrderCustomer()->getEmail();
but I do not know how to access the method from: setFields() if I try this I get this error
Notice: Undefined index: o_getOrderCustomer_getEmail
`$datatable = $this->get('datatable') ->setFields( array(
"Id" => 'o.id',
"Email" => 'o.getOrderCustomer.getId()',// error
"_identifier_" => 'n.id')
)->setGlobalSearch(true);`
Help Please