hasOne(Partner::class, ['id' => 'partner_id']); } public function getUser() { return $this->hasOne(UserPublic::class, ['id' => 'user_id']); } }