Uploaded image for project: 'Doctrine 2 - ORM'
  1. Doctrine 2 - ORM
  2. DDC-631

XMLDriver $metadata->table['indexes'] undefined

    Details

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

      Description

      Hi,

      I've been playing with Doctrine2 XML definitions and was testing indexes:

      ....
      <indexes>
      <index name="name_idx" columns="name"/>
      </indexes>
      <field name="name" type="string" column="name" length="50" precision="0" scale="0"/>
      ......

      which caused a PHP Warning: Illegal offset type in XmlDriver.php on line 112:

      $metadata->table['indexes'][$index['name']] = array(
      'columns' => $columns
      );

      It seems $metadata->table['indexes'] is undefined although it should be an array. I'm not sure if the problem is in the definition, please let me know if you need whole XML entity definition or more details.

        Activity

        Hide
        beberlei Benjamin Eberlei added a comment -

        This was fixed with this commit http://github.com/doctrine/doctrine2/commit/4705c1cb037a95e4a1465128df97dc2a0d6b038e on 13. June already, it is therefore in Beta2 already.

        Show
        beberlei Benjamin Eberlei added a comment - This was fixed with this commit http://github.com/doctrine/doctrine2/commit/4705c1cb037a95e4a1465128df97dc2a0d6b038e on 13. June already, it is therefore in Beta2 already.

          People

          • Assignee:
            romanb Roman S. Borschel
            Reporter:
            frantisek.troster Frantisek Troster
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: