lib/models/User.php
public function getIndividual()
    {
        if (!isset($this->_individual) && !empty($this->object_individual_id)) {
            $this->_individual = false;
            $individualType = Yii::$app->collectors['types']->getOne('Individual');
            if (!empty($individualType->object)) {
                $individualClass = $individualType->object->primaryModel;
                $this->_individual = $individualClass::get($this->object_individual_id);
            }
        }

        return $this->_individual;
    }
public function getIndividual()
    {
        if (!isset($this->_individual) && !empty($this->object_individual_id)) {
            $this->_individual = false;
            $individualType = Yii::$app->collectors['types']->getOne('Individual');
            if (!empty($individualType->object)) {
                $individualClass = $individualType->object->primaryModel;
                $this->_individual = $individualClass::get($this->object_individual_id);
            }
        }

        return $this->_individual;
    }
public function getIndividual ( ) { if ( ! isset ( $ this -> _individual ) && ! empty ( $ this -> object_individual_id ) ) { $ this -> _individual = false ; $ individualType = Yii :: $ app -> collectors [ 'types' ] -> getOne ( 'Individual' ) ; if ( ! empty ( $ individualType -> object ) ) { $ individualClass = $ individualType -> object -> primaryModel ; $ this -> _individual = $ individualClass :: get ( $ this -> object_individual_id ) ; } } return $ this -> _individual ; }
Get individual.

@return \yii\db\ActiveRelation
Get individual .