ZF-Commons/ZfcUserDoctrineORM — Issue #1: Custom entities still rely on provided definitions
Author: toma42
Created: 2012-02-28 18:59:18+00:00
State: open

When using custom doctrine entities the app still relies on provided entities when initializing.

config:
'user_model_class' => 'Entities\Users',
'usermeta_model_class' => 'Entities\UsersMeta',

Startup:
Fatal error: Uncaught exception 'Doctrine\ORM\ORMException' with message 'Column name `user_id` referenced for relation from ZfcUserDoctrineORM\Entity\UserMeta towards Entities\Users does not exist.

If I change the supplied ~/config/xml/ZfcUserDoctrineORM.Entity.UserMetaMappedSuperClass.orm.xml to match the _key and ref_ I add to my primary and foreign keys it works fine.

I am converting my app to use submodules and pulling from this and having it work of the shelf is my goal.

Tom