DDC-631: XMLDriver $metadata->table['indexes'] undefined #778

Closed
opened 2026-01-22 12:50:08 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Jun 10, 2010).

Jira issue originally created by user frantisek.troster:

Hi,

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

....




......

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.

Originally created by @doctrinebot on GitHub (Jun 10, 2010). Jira issue originally created by user frantisek.troster: 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.
admin added the Bug label 2026-01-22 12:50:08 +01:00
admin closed this issue 2026-01-22 12:50:09 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jun 28, 2010):

Comment created by @beberlei:

This was fixed with this commit 4705c1cb03 on 13. June already, it is therefore in Beta2 already.

@doctrinebot commented on GitHub (Jun 28, 2010): Comment created by @beberlei: This was fixed with this commit http://github.com/doctrine/doctrine2/commit/4705c1cb037a95e4a1465128df97dc2a0d6b038e on 13. June already, it is therefore in Beta2 already.
Author
Owner

@doctrinebot commented on GitHub (Jun 28, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Jun 28, 2010): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#778