Guest User

Untitled

a guest
Dec 28th, 2016
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1.     /**
  2.      * Contact visibility.
  3.      * @Expose
  4.      * @JMS\Groups({"ROLE_USER","ROLE_ADMIN"})
  5.      * @ORM\Column(type="boolean", nullable=true)
  6.      */
  7.     protected $visibleAll;
  8.  
  9.     /**
  10.      * Contact visibility.
  11.      * @Expose
  12.      * @Assert\Expression(
  13.      *     "this.getVisibleAll() != true and value == true)",
  14.      *     message="Contact must be visible to all if you want to allow to edit it"
  15.      * )
  16.      * @JMS\Groups({"ROLE_USER","ROLE_ADMIN"})
  17.      * @ORM\Column(type="boolean", nullable=true)
  18.      */
  19.     protected $editableAll;
Advertisement
Add Comment
Please, Sign In to add comment