[DDC-526] Abstract Type needs method "getEmptyValue" Created: 17/Apr/10 Updated: 14/Jun/10 Resolved: 18/Apr/10 |
|
| Status: | Resolved |
| Project: | Doctrine 2 - ORM |
| Component/s: | ORM |
| Affects Version/s: | 2.0-ALPHA4 |
| Fix Version/s: | 2.0-BETA1 |
| Security Level: | All |
| Type: | Bug | Priority: | Major |
| Reporter: | Benjamin Eberlei | Assignee: | Benjamin Eberlei |
| Resolution: | Invalid | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
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". |
| Comments |
| Comment by Roman S. Borschel [ 17/Apr/10 ] |
|
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. |
| Comment by Roman S. Borschel [ 17/Apr/10 ] |
|
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. |
| Comment by Benjamin Eberlei [ 17/Apr/10 ] |
|
Yes that works i found out. |
| Comment by Roman S. Borschel [ 18/Apr/10 ] |
|
Can we close this then? |
| Comment by Benjamin Eberlei [ 18/Apr/10 ] |
|
Closed, not needed |