ApiResource( attributes={"security"="is_granted('ROLE_ADMIN_ADHERENT_GERER_VIEW')"}, collectionOperations={ "get"={"security"="is_granted('ROLE_ADMIN_ADHERENT_GERER_LIST')"}, "post"={"security"="is_granted('ROLE_ADMIN_ADHERENT_GERER_EDIT')"} }, itemOperations={ "get"={"security"="is_granted('ROLE_ADMIN_ADHERENT_GERER_LIST')"}, "put"={"security"="is_granted('ROLE_ADMIN_ADHERENT_GERER_EDIT') or object.user == user"}, }, normalizationContext={"groups"={"read"}}, denormalizationContext={"groups"={"write"}} ).
@ORM\Entity(repositoryClass="App\Repository\AdherentRepository") @ORM\Table(name="adherent") @ORM\HasLifecycleCallbacks()