-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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: Entity::toRawArray() may return Time object #8302
Comments
After calling |
Yes, if we change the date and save the object, |
@kenjis got a question. |
The The current behavior: public function index()
{
$users = new UserModel();
/** @var User $user */
$user = $users->find(1);
$user->updated_at = '2023-12-12 12:12:12';
var_dump($user);
}
|
PHP Version
8.1
CodeIgniter4 Version
4.4.3 and develop
CodeIgniter4 Installation Method
Git
Which operating systems have you tested for this bug?
macOS
Which server did you use?
cli-server (PHP built-in webserver)
Database
MySQL 8.0.34
What happened?
The following code returns Time object.
Steps to Reproduce
Expected Output
Returns string value
'2023-12-12 12:12:12'
?Anything else?
No response
The text was updated successfully, but these errors were encountered: