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