Doctrine 1
  1. Doctrine 1
  2. DC-948

3 underscores in my yaml file lead to error

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Schema Files
    • Labels:
      None
    • Environment:
      Linux 2.6.31-15-generic #50-Ubuntu SMP Tue Nov 10 14:54:29 UTC 2009

      Symfony 1.4

      Description

      I had this yaml:

      OldAppellations:

      connection: doctrine

      tableName: old_appellations

      columns:

      appellations___sql:

      { type: text }

      appellationsapcode_sql:

      { type: text }

      appellationsappellation_sql:

      { type: text }

      appellationscolor_sql:

      { type: text }

      appellationscountry_sql:

      { type: text }

      appellationsregion_sql:

      { type: text }

      appellationsregion_for_link_sql:

      { type: text }

      appellationssubt_sql:

      { type: text }

      appellationstaster_appel_sql:

      { type: text }

      appellationstotal_r_sql:

      { type: text }

      appellationstype_sql:

      { type: text }

      export_record_id_sql:

      { type: text }

      I got this error:

      Notice: Undefined index: o__appellations in /home/lkrubner/dev/tastingnotes/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Hydrator/Graph.php on line 302
      Notice: Undefined index: in /home/lkrubner/dev/tastingnotes/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Hydrator/Graph.php on line 303
      Fatal error: Call to a member function getFieldName() on a non-object in /home/lkrubner/dev/tastingnotes/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Hydrator/Graph.php on line 304

      Then I changed the 3 underscores to 1:

      appellations_sql:

      { type: text }

      I rebuilt the model and the error was gone.

      More details and screenshots are here:

      http://www.symfonyexperts.com/question/show/id/178

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Lawrence Krubner
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: