1
0
mirror of synced 2024-12-12 22:36:02 +03:00

[2.0] DDC-186 - Fixed SchemaTool indexes behaviour, changed a functional/integration model to use one index for test-coverage.

This commit is contained in:
beberlei 2009-12-04 07:19:51 +00:00
parent 94cf75b9ac
commit 466e96b491
2 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,7 @@ class SchemaTool
if (isset($class->primaryTable['indexes'])) {
foreach ($class->primaryTable['indexes'] AS $indexName => $indexData) {
$table->addIndex($indexData, $indexName);
$table->addIndex($indexData['columns'], $indexName);
}
}

View File

@ -10,7 +10,7 @@ use Doctrine\Common\Collections\ArrayCollection;
*
* @author Giorgio Sironi
* @Entity
* @Table(name="ecommerce_products")
* @Table(name="ecommerce_products",indexes={@index(name="name_idx", columns={"name"})})
*/
class ECommerceProduct
{