I have an application with database manage by doctrine with entities.
My application need to create tables dynamically without entity. (programaticaly)
When i execute doctrine:schema:update command, tables create dynamically are dropped.
If i add
#schema_filter: ~^(?!g_)~
to dbal configuration, doctrine:schema:update ignore my tables. It’s good.
On the other hand, when i use :
$currentSchema = $sm->introspectSchema();
$newSchema = clone $currentSchema;
$table = $newSchema->getTable('g_cars');
$table->addColumn("zoby", "string", []);
getTable not found my table (manage by myself, not by doctrine).
How can I keep the entities managed by doctrine and my tables created in programming using the SchemaManager?
Should we override the doctrine:schema:update command?
Thanks for your help.