예제 #1
0
 public function __construct()
 {
     parent::__construct();
     $this->setRoles([self::ROLE_CTO_USER]);
     $this->setBlocked(false);
     $this->clients = new ArrayCollection();
     $this->masters = new ArrayCollection();
     $this->jobs = new ArrayCollection();
 }
예제 #2
0
 public function __construct()
 {
     parent::__construct();
     $this->setRoles([self::ROLE_ADMIN_USER, 'ROLE_ALLOWED_TO_SWITCH']);
 }