Skip to content
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

Controller_data save #6

Open
allevo opened this issue Sep 19, 2013 · 1 comment
Open

Controller_data save #6

allevo opened this issue Sep 19, 2013 · 1 comment
Labels

Comments

@allevo
Copy link
Member

allevo commented Sep 19, 2013

The model passes the id parameter to the controller to know if you are saving or updating a row. The save method of Controller_Data was wrong.

@TheElter
Copy link
Member

IMHO this implementation is really ambiguos. The save method shouldn't have any parameter. If you want to change the model "primary key" you should simply set it like other field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants