Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2594

schema-tools:update fails to sync options={"default" = 0} to the database

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      Specifying DEFAULT 0 on my database will cause doctrine to throw an out-of-sync warning when validating my mappings (if the options=

      {"default"=0} isn't defined), but the inverse is not true. Doctrine will say my entity is synced, even if I specified options={"default"=0}

      and my database doesn't have a default value.

        Activity

        Hide
        Marco Pivetta added a comment -

        That's normal, advanced "options" are not taken into account when computing changes in the schema (for now)

        Show
        Marco Pivetta added a comment - That's normal, advanced "options" are not taken into account when computing changes in the schema (for now)

          People

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

            Dates

            • Created:
              Updated: