DDC-745: DateTime with SQLite #920

Open
opened 2026-01-22 12:55:33 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Aug 12, 2010).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user darkfly:

I was using 2.0.0-Beta3 no problems found.
Then upgraded to Beta4 and the following:

Fatal error: Uncaught exception 'Doctrine\DBAL\Types\ConversionException' with message 'Could not convert database value "2010-08-07 00:00:00.000" to Doctrine Type datetime' in

I guess it's an ORM's problem.

I've traced to:
call stack:
Doctrine\DBAL\Types\DateTimeType->convertToPHPValue()
Doctrine\ORM\Persisters\BasicEntityPersister->_processSQLResult()
Doctrine\ORM\Persisters\BasicEntityPersister->_createEntity()
Doctrine\ORM\Persisters\BasicEntityPersister->load()
Doctrine\ORM\Persisters\BasicEntityPersister->findOneBy()

in Doctrine\DBAL\Types\DateTimeType->convertToPHPValue() i receive the values:
$value = "2010-08-07 00:00:00.000"
$platform->getDateTimeFormatString() = "Y-m-d H:i:s"

I'm new to Doctrine, maybe is my problem but it was working before i've upgraded everything.
I'll also try to find out what is going on, but just to let you guys know.

=================0
System:
Windows 7 - Portuguese Regional Settings
XAMPP
SQLite database

Originally created by @doctrinebot on GitHub (Aug 12, 2010). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user darkfly: I was using 2.0.0-Beta3 no problems found. Then upgraded to Beta4 and the following: Fatal error: Uncaught exception 'Doctrine\DBAL\Types\ConversionException' with message 'Could not convert database value "2010-08-07 00:00:00.000" to Doctrine Type datetime' in I guess it's an ORM's problem. I've traced to: call stack: Doctrine\DBAL\Types\DateTimeType->convertToPHPValue() Doctrine\ORM\Persisters\BasicEntityPersister->_processSQLResult() Doctrine\ORM\Persisters\BasicEntityPersister->_createEntity() Doctrine\ORM\Persisters\BasicEntityPersister->load() Doctrine\ORM\Persisters\BasicEntityPersister->findOneBy() in Doctrine\DBAL\Types\DateTimeType->convertToPHPValue() i receive the values: $value = "2010-08-07 00:00:00.000" $platform->getDateTimeFormatString() = "Y-m-d H:i:s" I'm new to Doctrine, maybe is my problem but it was working before i've upgraded everything. I'll also try to find out what is going on, but just to let you guys know. =================0 System: Windows 7 - Portuguese Regional Settings XAMPP SQLite database
admin added the Bug label 2026-01-22 12:55:33 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#920