ZF-Commons / ZfcUserDoctrineORM

Doctrine2 ORM storage adapter for ZfcUser.
BSD 3-Clause "New" or "Revised" License
89 stars 92 forks source link

Prevent default entity from being created #31

Closed robbanl closed 10 years ago

robbanl commented 12 years ago

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?

stefanovalle commented 11 years ago

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.

reinoldus commented 11 years 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

Danielss89 commented 10 years ago

@reinoldus way is the way to do it :)