Closed byhaskell closed 2 years ago
Hi @byhaskell
This is expected since your Events
entity has no field title
(I guess it resides in EventTranslation
). Easy Admin uses Doctrine to sort fields (adding ORDER BY
clauses where necessary) but at the moment it cannot do so on associations for instance, so I'm afraid it's not possible.
See https://symfony.com/bundles/EasyAdminBundle/current/fields.html#misc-options :
"unmapped fields and Doctrine associations cannot be sorted"
Environment
Symfony packages
PHP version
Subject
When using this type, you cannot sort the field; an error appears.
An exception has been thrown during the rendering of a template ("[Semantical Error] line 0, col 60 near 'translations': Error: Invalid PathExpression. StateFieldPathExpression or SingleValuedAssociationField expected.").
When using this type of recording:
getting an error:
An exception has been thrown during the rendering of a template ("[Semantical Error] line 0, col 60 near 'title DESC': Error: Class App\Entity\Events has no field or association named title").