/** * @return \yii\db\ActiveQuery */ public function getIdentities() { return $this->hasMany(Identity::className(), ['internal_user_id' => 'id'])->inverseOf('internalUser'); }