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
if (isset($class->primaryTable['indexes'])) {
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;
*
* @author Giorgio Sironi
* @Entity
* @Table(name="ecommerce_products")
* @Table(name="ecommerce_products",indexes={@index(name="name_idx", columns={"name"})})
*/
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