mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-526: Abstract Type needs method "getEmptyValue" #655
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 (Apr 17, 2010).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user @beberlei:
IBM DB2 is a very strict system, defining a column with "foo INT NOT NULL" requires you to set a DEFAULT value.
This information is best placed on the Type instances with a method "getEmptyValue".
@doctrinebot commented on GitHub (Apr 17, 2010):
@doctrinebot commented on GitHub (Apr 17, 2010):
Comment created by romanb:
Does not sound good to me. It would be better to solve this in the DB2 platform/schemamanager, if possible. Introducing new methods on Type for such db-specific issues is not appealing.
@doctrinebot commented on GitHub (Apr 17, 2010):
Comment created by romanb:
-Or if all other drivers are fine with this as well and its easier to do, we could do that always for all platforms.-
Forget that, I misunderstood the problem a bit.
Nevertheless, if this can be solved on the DB2 platform/schemamanager level it would be better, i.e. internally picking an empty default value depending on the type.
@doctrinebot commented on GitHub (Apr 17, 2010):
Comment created by @beberlei:
Yes that works i found out.
@doctrinebot commented on GitHub (Apr 18, 2010):
Comment created by romanb:
Can we close this then?
@doctrinebot commented on GitHub (Apr 18, 2010):
Comment created by @beberlei:
Closed, not needed
@doctrinebot commented on GitHub (Apr 18, 2010):
Issue was closed with resolution "Invalid"