Thursday, July 1, 2010

Re: save() omitted

I am unbelievably stupid some times. I have lost two days trying to figure this one out and it never crossed my mind to check the validation rules in the model. And everything was right there in the manual: "If for some reason your data isn't saving, be sure to check to see if some validation rules aren't being broken."

Thanks for the help.

On Thu, Jul 1, 2010 at 7:48 PM, Andrei Mita <andrei.mita@gmail.com> wrote:
I believe it's OK

Array
(
[Game] => Array
(
[id] => 2
[scored] => 0
[conceded] => 6
[correct_answers] => 0
[wrong_answers] => 30
[time_end] => 2010-07-01 19:47:49
[outcome] => -1
)

)


On Thu, Jul 1, 2010 at 7:41 PM, Edinei L. Cipriani <phpedinei@gmail.com> wrote:
Em 01/07/10 13:39, Andrei Mita escreveu:
Where should I try that? View, controller?

Controller.


On Thu, Jul 1, 2010 at 7:33 PM, Edinei L. Cipriani <phpedinei@gmail.com> wrote:
Em 01/07/10 13:24, Andrei Mita escreveu:
No luck. I don't get it. No errors, nothing. It's as if the query isn't there. The only thing I get from sql dump is:
Try:

pr($game_final);
die();

It seems to me that they are accessing the correct action
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en


Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: