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

Bug: $useTimestamps cause insert() exception #2469

Closed
hoc-ht opened this issue Dec 31, 2019 · 2 comments
Closed

Bug: $useTimestamps cause insert() exception #2469

hoc-ht opened this issue Dec 31, 2019 · 2 comments
Labels
bug Verified issues on the current code behavior or pull requests that will fix them

Comments

@hoc-ht
Copy link

hoc-ht commented Dec 31, 2019

Describe the bug
After set $useTimestamps=true, I got an exception while try to insert():
CRITICAL - 2019-12-31 10:49:23 --> ErrorException: array_key_exists(): The first argument should be either a string or an integer in **\vendor\codeigniter4\framework\system\Model.php:703

CodeIgniter 4 version
Version 4.0.0-rc.3

Context

  • PHP version 7.3.10
@hoc-ht hoc-ht added the bug Verified issues on the current code behavior or pull requests that will fix them label Dec 31, 2019
@MGatner
Copy link
Member

MGatner commented Jan 1, 2020

Did you set createdField?

@hoc-ht
Copy link
Author

hoc-ht commented Jan 2, 2020

I'm sorry. This is my mistake. I set wrong value for $updateField, so it cause this exception.

@hoc-ht hoc-ht closed this as completed Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

No branches or pull requests

2 participants