mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
OracleDB Interval type not recognized by the ORM during schema import #5525
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @licarigianluca on GitHub (May 8, 2017).
Originally assigned to: @Ocramius on GitHub.
When I run this command
php bin/console doctrine:schema:validate
the system print this message
Unknown database type interval day(3) to second(6) requested, Doctrine\DBAL
\Platforms\OraclePlatform may not support it.
I have an Oracle database schema that i cannot change. I need to import some tables into entities but the command fails and print the message above. There is a way to ignore that check? I used the filter argument but the check fails everytime.
Thanks
@Ocramius commented on GitHub (May 8, 2017):
You can map the type as a DBAL type manually. See http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/cookbook/custom-mapping-types.html
You want to do
$platform->registerDoctrineTypeMapping(...)