Created
September 14, 2018 08:40
-
-
Save piotrbrzezina/26f80f17bae3932bd6da2328b81155be to your computer and use it in GitHub Desktop.
Flashcard step 3 (setup serialization groups in @ApiResource)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ... | |
/** | |
* @ApiResource( | |
* normalizationContext={"groups"={"subjectList"}}, | |
* denormalizationContext={"groups"={"subjectCreate"}} | |
* ) ... | |
*/ | |
class Subject | |
{ | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment