mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Unable to use other annotations than ORM #6648
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ThibautSF on GitHub (Mar 12, 2021).
Hi,
I'm unable to use any other annotation than ORM ones on my entities. And after several days I didn't manage to find a satisfying solution.
Here is an example with the "Symfony\Component\Serializer\Annotation\Groups" annotation.
The following fatal error is thrown :
Here is the most basic structure for my entities
My entitymanager is generated like that
Installed packages versions :
2.8.25.2.4(from symfony/serializer-pack)Thanks for reading.
@beberlei commented on GitHub (Mar 12, 2021):
Annotations need to be loadable, usually this happens by passing the Composer autoloader to
AnnotationRegistry. See here https://www.doctrine-project.org/projects/doctrine-annotations/en/1.10/annotations.html#registering-annotations@ThibautSF commented on GitHub (Mar 12, 2021):
Thanks !
Changed my bootstrap from
to