コード例 #1
0
 public function validate()
 {
     parent::validate();
     if (!$this->controls) {
         throw new ValidationException(['controls' => 'Please create at least one field.']);
     }
 }
コード例 #2
0
 public function validate()
 {
     parent::validate();
     $this->validateDupicateColumns();
     if (!$this->columns) {
         throw new ValidationException(['columns' => 'Please create at least one column.']);
     }
 }