*Not supported*ZfTable 3.1. Awesome ZF2 table / grid (and much much more) generator with huge possibilities of decorating and conditioning. Integrated with DataTables, Doctrine 2, Bootstrap 2.0 and 3.0.
As an idea for simply field aliasing for doctrine query builder:
at configure grid $headers it's not possible to set column names from JOINED tables because this one could have same names as in root table.
user
:name
country
:name
'name' => [
'tableAlias' => 'c',
'title' => $translator->translate('Company'),
'filters' => 'text',
],
'postCode' => [
'tableAlias' => 'a',
'title' => $translator->translate('Post code'),
'filters' => 'text',
'width' => 100
],
'city' => [
'tableAlias' => 'a',
'title' => $translator->translate('City'),
'filters' => 'text',
],
'country' => [ // here is a problem we need a name of company and can not
'tableAlias' => 'l.name', // this is new in Doctrine QB at order() used as is no needed concatenate country string from header name
'title' => $translator->translate('Country'),
'filters' => 'text',
],
specially for ordering, filters used only if any exists in user land code.
As an idea for simply field aliasing for doctrine query builder:
at configure grid $headers it's not possible to set column names from JOINED tables because this one could have same names as in root table.
user :name
country :name
specially for ordering, filters used only if any exists in user land code.