Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating or updating records with pendulum instance does not work #513

Closed
girardinsamuel opened this issue Nov 8, 2021 · 0 comments · Fixed by #518
Closed

Creating or updating records with pendulum instance does not work #513

girardinsamuel opened this issue Nov 8, 2021 · 0 comments · Fixed by #518
Assignees
Labels
bug An existing feature is not working as intended

Comments

@girardinsamuel
Copy link
Contributor

Describe the bug
When creating or updating ORM records with Model.create() or model.update() or by directly setting attribute does not work with SQLite database.

Expected behavior
As we have declared the datetime field in __dates__ it is expected that Masonite ORM will serialize date/datetime objects from pendulum instance before inserting records into db.

Screenshots or code snippets
image

Desktop (please complete the following information):

  • OS: MacOS
  • Version Big Sur

What database are you using?

  • Type: SQLite
  • Masonite ORM 2.0
@girardinsamuel girardinsamuel added the bug An existing feature is not working as intended label Nov 8, 2021
@josephmancuso josephmancuso self-assigned this Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An existing feature is not working as intended
Projects
Development

Successfully merging a pull request may close this issue.

2 participants