ZF-Commons/ZfcUserDoctrineORM

Prevent default entity from being created

robbanl opened this issue · 3 comments

Hello,

I'm using ZfcBase + ZfcUser + Zfc + ZfcUserDoctrineORM and I've created my own entity and loaded it successfully. The only thing that bothers me is that the default "user" table is still created when doing:

./vendor/doctrine/doctrine-module/bin/doctrine-module orm:schema-tool:update

This also prevents me from using the table name "user".

Is there any way to prevent the default entitiy from being created without modifying core files?

I solved this issue disabling the default entity driver (loaded inside Module.php's bootstrap).

Unfortunately there isn't a clean way to change this behaviour because the used option cannot be configured through module's configurations files. I send a PR (47) that overcome this issue some minutes ago.

I thin a clean way would be to add this:
'EnableDefaultEntities' => false,

into your
zfcuser.global.php into the 'zfcuser' array.

works for me

@reinoldus way is the way to do it :)