-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
ID field missing from entity PaymentToken #789
Comments
The id is up to a user and therefore should not be defined in a basic entity. One might one to use autoincrement where others sequences and other guys UUIDs generated in the client |
Remove the autogenerated strategy. the id is generated by the app and should be unique |
this should work:
|
The "get-it-started" doc misses that part. |
No luck, this leads to:
My table has just this one field ( |
Adding this didn't change anything :-( Again: Where are the column definitions for this entity? Which columns is it supposed to have? |
@makasim Please help! |
I had to update the doctrine mapping config to get rid of this error message
orm:
entity_managers:
default:
mappings:
payum:
is_bundle: false
type: xml
dir: '%kernel.root_dir%/../vendor/payum/core/Payum/Core/Bridge/Doctrine/Resources/mapping'
# set this dir instead if you use `payum/payum` library
#dir: '%kernel.root_dir%/../vendor/payum/payum/src/Payum/Core/Bridge/Doctrine/Resources/mapping'
prefix: 'Payum\Core\Model' source: https://stackoverflow.com/questions/24873780/error-with-doctrineschemavalidate-for-payum-token |
When following https://github.com/ThomasLandauer/Payum/blob/patch-3/docs/symfony/get-it-started.md I cannot create the entities in the database: When I try to set up a migration (
bin/console make:migration
), I'm getting this error:I tried to fix this by adding this to the
PaymentToken
entity (see 7cdcb50 ):... but this leads to:
When looking into https://github.com/Payum/Payum/blob/master/src/Payum/Core/Model/Token.php I can't see any mapping information. So where are the columns for the database table defined??
The text was updated successfully, but these errors were encountered: