<?php
class Game extends AppModel {
var $name = 'Game';
var $belongsTo = array(
'Stage' => array(
'className' => 'Stage',
'foreignKey' => 'stage_id',
),
'User' => array(
'className' => 'User',
'foreignKey' => 'user_id',
)
);
var $hasMany = array(
'Answer' => array(
'className' => 'Answer',
'foreignKey' => 'game_id',
'dependent' => false,
)
);
}
?>
On Thu, Jul 1, 2010 at 8:04 PM, Edinei L. Cipriani <phpedinei@gmail.com> wrote:
Em 01/07/10 13:57, Andrei Mita escreveu:Please, paste your action and your model, for me.
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."
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:
Post a Comment