Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I don't know if this is a feature or a bug, but if I define a field type = string, length = 512, Doctrine creates this as a TEXT field in MySQL. Seems to do this for a length over 255 characters, e.g. 256. This seems like overkill possibly. Feels like the field should be defined either as TINYTEXT or VARCHAR (which can go up to 63335 characters in length).

      Is there any way to control this behavior?

        Activity

        Hide
        Jonathan H. Wage added a comment -

        No, it is not possible right now. The portable Doctrine types and lengths are converted to certain types for the different databases. In Doctrine2 you can specify the SQL that will create your column in the mapping if you desire something more customize or database specific

        Show
        Jonathan H. Wage added a comment - No, it is not possible right now. The portable Doctrine types and lengths are converted to certain types for the different databases. In Doctrine2 you can specify the SQL that will create your column in the mapping if you desire something more customize or database specific

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Karma Dordrak (Drak)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: