Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Parsing comma separated string into multiple database entries (eg. Tags)
- // src/Acme/BlogBundle/Entity/Author.php
- use SymfonyComponentValidatorConstraints as Assert;
- class Post
- {
- /**
- * @AssertChoice(min = 1, max = 32)
- */
- protected $tags;
- }
Add Comment
Please, Sign In to add comment