public function checkAttributes()
    {
        if (YII_ENV !== YII_ENV_PROD || YII_DEBUG) {
            if (!is_string($this->idAttribute) && empty($this->idAttribute) &&
                !is_string($this->guidAttribute) && empty($this->guidAttribute)) {
                $errorInfo = 'ID and GUID attributes are not be disabled simultaneously in relational database.';
                throw new \yii\base\NotSupportedException($errorInfo);
            }
        }
        return true;
    }
public function checkAttributes()
    {
        if (YII_ENV !== YII_ENV_PROD || YII_DEBUG) {
            if (!is_string($this->idAttribute) && empty($this->idAttribute) &&
                !is_string($this->guidAttribute) && empty($this->guidAttribute)) {
                $errorInfo = 'ID and GUID attributes are not be disabled simultaneously in relational database.';
                throw new \yii\base\NotSupportedException($errorInfo);
            }
        }
        return true;
    }
public function checkAttributes ( ) { if ( YII_ENV !== YII_ENV_PROD || YII_DEBUG ) { if ( ! is_string ( $ this -> idAttribute ) && empty ( $ this -> idAttribute ) && ! is_string ( $ this -> guidAttribute ) && empty ( $ this -> guidAttribute ) ) { $ errorInfo = 'ID and GUID attributes are not be disabled simultaneously in relational database.' ; throw new \ yii \ base \ NotSupportedException ( $ errorInfo ) ; } } return true ; }
Check whether all properties meet the standards. If you want to disable
checking, please override this method and return true directly. This
method runs when environment is not production or disable debug mode.
@return boolean true if all checks pass.
@throws NotSupportedException
Check whether all properties meet the standards . If you want to disable checking please override this method and return true directly . This method runs when environment is not production or disable debug mode .