Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2132

[GH-509] SchemaTool ignoring 'fixed' option

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of smottt:

      Url: https://github.com/doctrine/doctrine2/pull/509

      Message:

      If the column is set to fixed string length like this:

      ```php
      <?php

      /**

      • @ORM\Column(type="string", length=2, options= {"fixed" = true}

        )
        */
        protected $foo;
        ```

      The schema tool will not detect that 'fixed' option correctly when generating update SQL.

      Fix attached.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        A related Github Pull-Request [GH-509] was closed
        https://github.com/doctrine/doctrine2/pull/509

        Show
        Benjamin Eberlei added a comment - A related Github Pull-Request [GH-509] was closed https://github.com/doctrine/doctrine2/pull/509
        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-509] was closed:
        https://github.com/doctrine/dbal/pull/509

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-509] was closed: https://github.com/doctrine/dbal/pull/509

          People

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

            Dates

            • Created:
              Updated:
              Resolved: