Doctrine 1
  1. Doctrine 1
  2. DC-281

Generate Models Db changes case in Relationship definition.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.0-BETA3
    • Fix Version/s: 1.2.0
    • Component/s: Import/Export
    • Labels:
      None

      Description

      Sorry - I'll start again.

      So this is the scenario. generate-models-db or generate-yaml-db will not work for attachment: pascal-case-tables.sql but it does work with attachment: lowercase-underscore-tables.sql

      The reason that this does not work is due to the builder incorrectly changing the case when you run generate-xxx-db on a database that has been generated with pascal case names (pascal-case-tables.sql).

      This could be the reason the exception "Missing Class Name" is thrown when creating relationships due to the class that is physically generated according to the table name (for example BookingStatus). does not match the class name being searched for when creating relationships.

      Create databases and run generate-models-db.

        Activity

        Hide
        RV David added a comment -

        changed booking to user - lack of sleep and too much caffeine makes for incoherent reports.

        Show
        RV David added a comment - changed booking to user - lack of sleep and too much caffeine makes for incoherent reports.
        Hide
        RV David added a comment -

        Hopefully this will be more coherent. Sorry for spamming - I've been obsessing in trying to get this to work for the past day or so.

        Show
        RV David added a comment - Hopefully this will be more coherent. Sorry for spamming - I've been obsessing in trying to get this to work for the past day or so.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            RV David
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: