-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No identifier/primary key specified for Entity "ZfcUserDoctrineORM\Entity\User" sub class of "ZfcUser\Entity\User". Every Entity must have an identifier/primary key. #22
Comments
Hmm, I'm not sure why you'd get this... best I can tell, there is a primary key. |
Interesting. Not sure what the issue is directly. Maybe @Ocramius can help? |
Maybe this issue is relative to pk name "user_id". |
You can call the PK as you wish. Did you change something in the entities/mappings? What are the operations you are executing? Do you have a stack trace? |
The problem appears when i copy module.config.php (https://github.com/ZF-Commons/ZfcUserDoctrineORM/blob/master/config/module.config.php) into my autoload directory and rename this file to zfcuserdoctrineorm.global.php without changing anything. If i don't copy this file, everything works fine. File:
Message:
Stack trace:
|
Well, looks like metadata for the parent class isn't loaded correctly... |
Hi, I have the same problem but for different reasons, in the case of @booradleys he is overriding the paths key with the wrong directory, but in my case is due to changes in DoctrineModule\Service\DriverFactory(doctrine/DoctrineModule@2991130#L13L86), the extension is not checked anymore and the default value in the configuration of the module is null, for now I have added the extension key to my configuration 'zfcuser_entity' => array(
'extension' => '.dcm.xml'
) sorry about my english guys regards, Pablo |
@masterpuppet my bad, guess I should put a default value or throw an exception in the |
Hey @ALL, No identifier/primary key specified for Entity 'ZfcUserDoctrineORM\Entity\User'. Every Entity must have an identifier/primary key. During usage of last version (Beta5 from last week) i could overwrite installd zf-common elements with actual downloadable version and it works. But this is not a solution :) . So my favourite way is to use only composer, but i get the "primary key error". Hope anyone can help me. Thanks a lot mludewig |
Same error here with clear install. Both cli and http backends |
Hey hoochie, |
yeah, I found exact this solution independently. But anyway, thank you. |
Hi Evan,
When accessing /user by login or register :
No identifier/primary key specified for Entity "ZfcUserDoctrineORM\Entity\User" sub class of "ZfcUser\Entity\User". Every Entity must have an identifier/primary key.
David
The text was updated successfully, but these errors were encountered: