-
Notifications
You must be signed in to change notification settings - Fork 60
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
Model won't update if @id column name is different to #107
Comments
I'm not sure if in the scheme of the framework this is the right solution but changing
to
Solves the issue, however it does mean that if someone wants to update the ID based on an old ID it will fail - not a common use case however |
Thanks @JamesMahy ubiquity/src/Ubiquity/orm/OrmUtils.php Lines 56 to 65 in f9591ed
|
Thanks, looks good! I tried something similar although without prior understanding of how the framework fits together couldn't make it work |
Schema
Model
Code
When i echo out $sql after line 235 of DAOUpdatesTrait.php i get the following sql
The fields in the where clause should be based on the @column annotation not the variable name!
Thanks
The text was updated successfully, but these errors were encountered: