Fabio B. Silva
added a comment - 02/Oct/12 12:39 PM Hi James,
You must copy phpunit.xml.dist to phpunit.xml and change the database configurations.
I have attached the mysql log, the test case works fine.

Okay, I've found the reason for this; the name isn't unique, some are duplicated.
Once the duplicates are removed there are 68 rows.
I'll add a unique index to the name column and hopefully this problem will go away.

James Bench
added a comment - 02/Oct/12 12:46 PM Okay, I've found the reason for this; the name isn't unique, some are duplicated.
Once the duplicates are removed there are 68 rows.
I'll add a unique index to the name column and hopefully this problem will go away.
Not sure whether you would consider this a bug.
Thanks for your help.

Fabio B. Silva
added a comment - 02/Oct/12 1:00 PM No problem, you are welcome
Actually isn't a bug, it is a documented behavior.
"Fields that are used for the index by feature HAVE to be unique in the database."
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/tutorials/working-with-indexed-associations.html#working-with-indexed-assocations

Fabio B. Silva
added a comment - 03/Oct/12 5:05 PM Fields that are used for the index by feature HAVE to be unique in the database.
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/tutorials/working-with-indexed-associations.html#working-with-indexed-assocations