Example #1
0
 /** @inheritdoc */
 public function scenarios()
 {
     return ArrayHelper::merge(parent::scenarios(), [self::SCENARIO_CREATE => ['project_id', 'user_id', 'role_id'], self::SCENARIO_MODIFY => ['role_id']]);
 }
Example #2
0
 /** @inheritdoc */
 public function scenarios()
 {
     return ArrayHelper::merge(parent::scenarios(), [self::SCENARIO_CREATE => ['name', 'email', 'password'], self::SCENARIO_MODIFY => ['name']]);
 }
Example #3
0
 /** @inheritdoc */
 public function scenarios()
 {
     return ArrayHelper::merge(parent::scenarios(), [self::SCENARIO_CREATE => ['name', 'description', 'owner_id', '!member_count', '!ticket_count', '!last_activity'], self::SCENARIO_MODIFY => ['name', 'description']]);
 }