mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-438: ORM: ColumnTypes case sensitive? #545
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 @doctrinebot on GitHub (Mar 18, 2010).
Jira issue originally created by user shurakai:
Is it intended that column types are case sensitive? Using DateTime throws an exception for me, datetime however works.
Maybe one should add a strtolower in the DBAL\Types\Type class?
@doctrinebot commented on GitHub (Mar 18, 2010):
Comment created by romanb:
It is indeed intended. Being case-sensitive makes things a lot easier for us. Once you start trying to be case-insensitive in too many places the code gets sprinkled with strtolower/strtoupper (i.e. DQL functions) and then you will miss some places ... :) .(personally, I think its also better if dAtETIme, daTetime and DATETIME are not the same thing so that you cant even start to use different casing for the same type, which is confusing.).
@doctrinebot commented on GitHub (Mar 18, 2010):
Issue was closed with resolution "Won't Fix"