Skip to content

[QUESTION]Problem on using Symfony serializer "Groups" for entities #442

@thrashzone13

Description

@thrashzone13

Package version, Laravel version:

6.2, 1.5

Expected behaviour:

Using symfony serializer as it's explained in the documentation and it works fine until I try to use groups on my entity properties

Actual behaviour:

As I add groups annotation to properties, get this error
[Semantical Error] The annotation "@Symfony\Component\Serializer\Annotation\Groups" in property App\Entities\User::$id was never imported. Did you maybe forget to add a "use" statement for this annotation?

Did I add the Symfony\Component\Serializer\Annotation\Groups use statement?

Yea sure

I guess there is a problem on registering the annotation cuz there is no provider for the symfony annotations (maybe?) It's been headache for a week now, can someone help me? :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions