Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[3.2.x] Non-Identity Models Don't Save Snapshot on Creation/Save #13166
When saving a new model that does NOT have an identity field (e.g. using a primary UUID instead) the snapshot does not get saved which results in errors when retrieving the updated fields.
$model = new NonIdentityModel(); $model->setKeys = 1; $model->save(); $model->getChangedFields(); <--- Exception thrown because snapshot !== array