-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Creation of duplicate model/database entities #184
Comments
Good one- I think there are two problems here:
|
dcbartlett
added a commit
that referenced
this issue
Mar 15, 2013
On second thought, this needs to be looked at further as this was a fix in controller scaffolding, and not at the model level. |
Closed in favor of #121 |
This was referenced Apr 29, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When creating an entity for database consumption, i noticed that you can specify :id on a create call.
E.G. ( http://localhost:1337/user/create/ )
E.G. ( http://localhost:1337/user/create/1?username=someone )
E.G. ( http://localhost:1337/user/create/1?username=someone_else )
This will in fact create 3 different entries...
There needs to be an error thrown stating that id is already in use, or error stating that "update" should be used to make changes to the entity.
The text was updated successfully, but these errors were encountered: