src/helpers/PropertiesHelper.php
public static function applicablePropertyModelId($class, $forceRefresh = false)
    {
        //ability to store properties of all model heirs in the one set of tables
        if (true === method_exists($class, 'getApplicableClass')) {
            $modelClass = call_user_func([$class, 'getApplicableClass']);
        } else {
            $modelClass = is_string($class) ? $class : get_class($class);
        }
        self::retrieveApplicablePropertyModels($forceRefresh);

        if (isset(self::$applicablePropertyModels[$modelClass])) {
            return self::$applicablePropertyModels[$modelClass];
        } else {
            throw new Exception('Property group model record not found for class: ' . $modelClass);
        }
    }
public static function applicablePropertyModelId($class, $forceRefresh = false)
    {
        //ability to store properties of all model heirs in the one set of tables
        if (true === method_exists($class, 'getApplicableClass')) {
            $modelClass = call_user_func([$class, 'getApplicableClass']);
        } else {
            $modelClass = is_string($class) ? $class : get_class($class);
        }
        self::retrieveApplicablePropertyModels($forceRefresh);

        if (isset(self::$applicablePropertyModels[$modelClass])) {
            return self::$applicablePropertyModels[$modelClass];
        } else {
            throw new Exception('Property group model record not found for class: ' . $modelClass);
        }
    }
public static function applicablePropertyModelId ( $ class , $ forceRefresh = false ) { //ability to store properties of all model heirs in the one set of tables if ( true === method_exists ( $ class , 'getApplicableClass' ) ) { $ modelClass = call_user_func ( [ $ class , 'getApplicableClass' ] ) ; } else { $ modelClass = is_string ( $ class ) ? $ class : get_class ( $ class ) ; } self :: retrieveApplicablePropertyModels ( $ forceRefresh ) ; if ( isset ( self :: $ applicablePropertyModels [ $ modelClass ] ) ) { return self :: $ applicablePropertyModels [ $ modelClass ] ; } else { throw new Exception ( 'Property group model record not found for class: ' . $ modelClass ) ; } }
Returns id of property_group_models record for requested classname

@param ActiveRecord | string $class
@param bool|false $forceRefresh

@return integer
@throws \yii\base\Exception
Returns id of property_group_models record for requested classname