lib/components/db/behaviors/Familiarity.php
public function getUser($owner = true)
    {
        if ($owner && $this->owner->getBehavior('Ownable') !== null && isset($this->owner->objectOwner)) {
            return $this->owner->objectOwner;
        } elseif (isset(Yii::$app->user) && isset(Yii::$app->user->identity->primaryKey)) {
            return Yii::$app->user->identity;
        }

        return false;
    }
public function getUser($owner = true)
    {
        if ($owner && $this->owner->getBehavior('Ownable') !== null && isset($this->owner->objectOwner)) {
            return $this->owner->objectOwner;
        } elseif (isset(Yii::$app->user) && isset(Yii::$app->user->identity->primaryKey)) {
            return Yii::$app->user->identity;
        }

        return false;
    }
Get user.

@param boolean $owner [[@doctodo param_description:owner]] [optional]

@return [[@doctodo return_type:getUser]] [[@doctodo return_description:getUser]]