Skip to content

Conversation

@Otanga-Otieno
Copy link
Contributor

@Otanga-Otieno Otanga-Otieno commented Aug 22, 2024

Close #7214

The object returned by Model::create doesn't include database columns that are filled by default and not passed to the create function.
This causes the 'can_be_deleted' property in our ContactInformationType object to always be null after the record has been created.
Calling the refresh function on the instance re-retrieves its data from the db, fixing the issue

@CLAassistant
Copy link

CLAassistant commented Aug 22, 2024

CLA assistant check
All committers have signed the CLA.

@asbiin asbiin merged commit b1802b4 into monicahq:main Oct 6, 2024
18 checks passed
@github-actions
Copy link

🎉 This PR is included in version 5.0.0-beta.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

contact information types not directly deletable litte bug

3 participants