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