Guest User

Untitled

a guest
Aug 10th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. Parsing comma separated string into multiple database entries (eg. Tags)
  2. // src/Acme/BlogBundle/Entity/Author.php
  3. use SymfonyComponentValidatorConstraints as Assert;
  4.  
  5. class Post
  6. {
  7. /**
  8. * @AssertChoice(min = 1, max = 32)
  9. */
  10. protected $tags;
  11. }
Add Comment
Please, Sign In to add comment