-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
After calling parate::save()
, UserModel::save()
tries to save Email identity.
But when inserting User, $this->find($this->db->insertID())
returns the User without email/passsword.
shield/src/Models/UserModel.php
Lines 205 to 216 in 4c8b53c
$result = parent::save($data); | |
if ($result && $data instanceof User) { | |
/** @var User $user */ | |
$user = $data->id === null | |
? $this->find($this->db->insertID()) | |
: $data; | |
if (! $user->saveEmailIdentity()) { | |
throw new RuntimeException('Unable to save email identity.'); | |
} | |
} |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working