The action is the above one and the model(with validation rules deleted):

<?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 <phpedi...@gmail.com>wrote:

> Em 01/07/10 13:57, Andrei Mita escreveu:
>
>  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."
>>
> Please, paste your action and your model, for me.
>
>
> 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+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to