ApiResource( attributes={"security"="is_granted('ROLE_ADMIN_NEWS_GERER_VIEW')"}, collectionOperations={ "get"={"security"="is_granted('ROLE_ADMIN_NEWS_GERER_LIST')"}, "post"={"security"="is_granted('ROLE_ADMIN_NEWS_GERER_EDIT')"} }, itemOperations={ "get"={"security"="is_granted('ROLE_ADMIN_NEWS_GERER_VIEW')"}, "put"={"security"="is_granted('ROLE_ADMIN_NEWS_GERER_EDIT')"}, }, normalizationContext={"groups"={"read"}}, denormalizationContext={"groups"={"write"}} ).
@ORM\Entity(repositoryClass="App\Repository\NewsRepository") @ORM\HasLifecycleCallbacks() @ORM\Table(name="news")