[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:
parent
94cf75b9ac
commit
466e96b491
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user