lib/components/db/behaviors/QueryFamiliarity.php
public function withFamiliarity()
    {
        if (empty(Yii::$app->user->id)) {
            return;
        }
        $familiarityModelClass = Yii::$app->classes['ObjectFamiliarity'];
        $familiartyTable = $familiarityModelClass::tableName();
        $params = [];
        $where = ['and'];
        $where[] = $this->owner->primaryAlias . '.' . $this->owner->primaryTablePk . ' = ft.object_id';
        $where[] = 'ft.user_id = :user_id';
        $params[':user_id'] = Yii::$app->user->id;
        $this->owner->join('LEFT JOIN', $familiartyTable . ' ft', $where, $params);
    }
public function withFamiliarity()
    {
        if (empty(Yii::$app->user->id)) {
            return;
        }
        $familiarityModelClass = Yii::$app->classes['ObjectFamiliarity'];
        $familiartyTable = $familiarityModelClass::tableName();
        $params = [];
        $where = ['and'];
        $where[] = $this->owner->primaryAlias . '.' . $this->owner->primaryTablePk . ' = ft.object_id';
        $where[] = 'ft.user_id = :user_id';
        $params[':user_id'] = Yii::$app->user->id;
        $this->owner->join('LEFT JOIN', $familiartyTable . ' ft', $where, $params);
    }
public function withFamiliarity ( ) { if ( empty ( Yii :: $ app -> user -> id ) ) { return ; } $ familiarityModelClass = Yii :: $ app -> classes [ 'ObjectFamiliarity' ] ; $ familiartyTable = $ familiarityModelClass :: tableName ( ) ; $ params = [ ] ; $ where = [ 'and' ] ; $ where [ ] = $ this -> owner -> primaryAlias . '.' . $ this -> owner -> primaryTablePk . ' = ft.object_id' ; $ where [ ] = 'ft.user_id = :user_id' ; $ params [ ':user_id' ] = Yii :: $ app -> user -> id ; $ this -> owner -> join ( 'LEFT JOIN' , $ familiartyTable . ' ft' , $ where , $ params ) ; }
[[@doctodo method_description:withFamiliarity]].

@return \yii\db\ActiveRelation
[[ @doctodo method_description : withFamiliarity ]] .