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

        Benjamin Eberlei created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.4 [ 10321 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: