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