We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Doctrine and Cycle support PHPs DateTime instances
DateTime
https://www.doctrine-project.org/projects/doctrine-orm/en/2.15/cookbook/working-with-datetime.html
https://cycle-orm.dev/docs/advanced-datetime/current
It would be great if yiisoft/db could support PHPs DateTime instances for types timestamp, datetime, date and time.
yiisoft/db
timestamp
datetime
date
time
$command->insert('datetime_table', ['datetime' => new DateTime()])->execute(); $datetime = (new Query($db))->select(['datetime'])->from('datetime_table')->scalar(); $datetimePhpType = $tableSchema->getColumn('datetime')->phpTypecast($datetime); $datetimePhpType instanceof DateTimeInterface;
I can realize if you agree.
The text was updated successfully, but these errors were encountered:
Yes, that is very convenient.
Sorry, something went wrong.
Good, I implement
Tigrov
No branches or pull requests
Doctrine and Cycle support PHPs
DateTime
instanceshttps://www.doctrine-project.org/projects/doctrine-orm/en/2.15/cookbook/working-with-datetime.html
https://cycle-orm.dev/docs/advanced-datetime/current
It would be great if
yiisoft/db
could support PHPsDateTime
instances for typestimestamp
,datetime
,date
andtime
.I can realize if you agree.
The text was updated successfully, but these errors were encountered: