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

          Benjamin Eberlei created issue -
          Benjamin Eberlei made changes -
          Field Original Value New Value
          Link This issue is required for DDC-494 [ DDC-494 ]
          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
          Benjamin Eberlei made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Roman S. Borschel [ romanb ] Benjamin Eberlei [ beberlei ]
          Resolution Invalid [ 6 ]
          Roman S. Borschel made changes -
          Component/s ORM [ 10012 ]
          Component/s DBAL [ 10011 ]
          Benjamin Eberlei made changes -
          Workflow jira [ 11240 ] jira-feedback [ 14393 ]
          Benjamin Eberlei made changes -
          Workflow jira-feedback [ 14393 ] jira-feedback2 [ 16257 ]
          Benjamin Eberlei made changes -
          Workflow jira-feedback2 [ 16257 ] jira-feedback3 [ 18510 ]

          This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

          • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-526, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

            People

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

              Dates

              • Created:
                Updated:
                Resolved: