[Closed] With Doctrine2, how can I add a @Groups("group_name") annotation to my Entity properties in Skipper?

0 votes
asked Nov 9, 2020 in Solved by damoclark (160 points)
recategorized May 25, 2021 by ludek.vodicka

Hi Skipper,

Just wondering how I add @Groups into my Skipper schema so that it exports the appropriate annotations for Doctrine?

Many thanks.
Damien.

1 Answer

0 votes
answered Nov 9, 2020 by ludek.vodicka Skipper developer (140,450 points)

Hello Damien,

Groups are not supported by Skipper because they are not @ORM annotations. It's a serialization bundle independent of Doctrine ORM.

commented Nov 9, 2020 by damoclark (160 points)

I understand. I thought skipper might wipe it out when I manually add it to my php file, but Skipper appears to leave that customisation intact, which is good.

Thanks
Damien.

commented Nov 9, 2020 by ludek.vodicka Skipper developer (140,450 points)

Exactly as you wrote, Skipper touch only @ORM annotations, nothing more.

...