Skip to content

Instantly share code, notes, and snippets.

@piotrbrzezina
Created June 26, 2019 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piotrbrzezina/0efc33a736bce5b0470b4fdf458d0cac to your computer and use it in GitHub Desktop.
Save piotrbrzezina/0efc33a736bce5b0470b4fdf458d0cac to your computer and use it in GitHub Desktop.
Flashcard step 9 (security advance)
<?php
/**
* @ApiResource(
* ...
* itemOperations={
* "get" = { object.user == user" },
* "put" = { object.user == user" }
* },
* )
*
* @ORM\Entity
*/
class Subject
{
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment