Commit 466e96b4 authored by beberlei's avatar beberlei

[2.0] DDC-186 - Fixed SchemaTool indexes behaviour, changed a...

[2.0] DDC-186 - Fixed SchemaTool indexes behaviour, changed a functional/integration model to use one index for test-coverage.
parent 94cf75b9
...@@ -194,7 +194,7 @@ class SchemaTool ...@@ -194,7 +194,7 @@ class SchemaTool
if (isset($class->primaryTable['indexes'])) { if (isset($class->primaryTable['indexes'])) {
foreach ($class->primaryTable['indexes'] AS $indexName => $indexData) { foreach ($class->primaryTable['indexes'] AS $indexName => $indexData) {
$table->addIndex($indexData, $indexName); $table->addIndex($indexData['columns'], $indexName);
} }
} }
......
...@@ -10,7 +10,7 @@ use Doctrine\Common\Collections\ArrayCollection; ...@@ -10,7 +10,7 @@ use Doctrine\Common\Collections\ArrayCollection;
* *
* @author Giorgio Sironi * @author Giorgio Sironi
* @Entity * @Entity
* @Table(name="ecommerce_products") * @Table(name="ecommerce_products",indexes={@index(name="name_idx", columns={"name"})})
*/ */
class ECommerceProduct class ECommerceProduct
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment