daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top