models/Properties.php
public function getCategory()
    {
        $categoryModel = static::getCategoryModel();
        return ($this->type == self::TYPE_CATEGORY) ? $this->hasOne($categoryModel::className(), ['id' => $this->options->category_id]) : null;
    }
public function getCategory()
    {
        $categoryModel = static::getCategoryModel();
        return ($this->type == self::TYPE_CATEGORY) ? $this->hasOne($categoryModel::className(), ['id' => $this->options->category_id]) : null;
    }
public function getCategory ( ) { $ categoryModel = static :: getCategoryModel ( ) ; return ( $ this -> type == self :: TYPE_CATEGORY ) ? $ this -> hasOne ( $ categoryModel :: className ( ) , [ 'id' => $ this -> options -> category_id ] ) : null ; }
Only type "TYPE_CATEGORY"
@return null|\yii\db\ActiveQuery
Only type TYPE_CATEGORY