| 1 | <?php |
||
| 5 | trait SchemaTrait |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Unfortunately due a poor design of the Doctrine\ORM\Tools\SchemaTool::getSchemaFromMetadata |
||
| 9 | * we have to use "class_alias" to replace "Doctrine\DBAL\Schema\Visitor\RemoveNamespacedAssets" |
||
| 10 | * with "RDV\Bundle\EntityExtendBundle\Tools\ExtendSchemaUpdateRemoveNamespacedAssets". |
||
| 11 | */ |
||
| 12 | public function overrideRemoveNamespacedAssets() |
||
| 21 | |||
| 22 | /** |
||
| 23 | * to disable automatic rename of autogenerated indices |
||
| 24 | * we have to use "class_alias" to replace "Doctrine\DBAL\Schema\SchemaDiff" |
||
| 25 | * with "RDV\Bundle\MigrationBundle\Migration\Schema\SchemaDiff" |
||
| 26 | */ |
||
| 27 | public function overrideSchemaDiff() |
||
| 36 | } |
||
| 37 |