/** * @return \yii\db\ActiveQuery */ public function getFriends0() { return $this->hasMany(Friends::className(), ['customer_user_name2' => 'customer_user_name']); }