Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-526

Abstract Type needs method "getEmptyValue"

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 2.0-ALPHA4
    • Fix Version/s: 2.0-BETA1
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      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".

        Issue Links

          Activity

          Hide
          Roman S. Borschel added a comment - - edited

          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.

          Show
          Roman S. Borschel added a comment - - edited 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.
          Hide
          Roman S. Borschel added a comment - - edited

          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.

          Show
          Roman S. Borschel added a comment - - edited 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.
          Hide
          Benjamin Eberlei added a comment -

          Yes that works i found out.

          Show
          Benjamin Eberlei added a comment - Yes that works i found out.
          Hide
          Roman S. Borschel added a comment -

          Can we close this then?

          Show
          Roman S. Borschel added a comment - Can we close this then?
          Hide
          Benjamin Eberlei added a comment -

          Closed, not needed

          Show
          Benjamin Eberlei added a comment - Closed, not needed

            People

            • Assignee:
              Benjamin Eberlei
              Reporter:
              Benjamin Eberlei
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: