Re: Child model fields

2008-01-01 Thread DaveM
Thanks for the reply. I have tried $this->Game->Score-create(); in my Games controller but the result is still the same as before. Here are the debug statements: 6 INSERT INTO `scores` (`player_id`,`player_points`,`player_finish`,`game_id`,`created`,`modified`) VALUES (374,'0',10,60,'2008-01-01

Re: Child model fields

2007-12-31 Thread soytuny
> $this->create(); I think, and I've had a bit to drink, should be $this->Game->Score- >create(); DaveM wrote: > Hi all, > > I am trying to build a page that uses a parent model (Game) and child > models (Score). Game has the following fields: id, game_number, and > date. Score has the follow

Child model fields

2007-12-31 Thread DaveM
Hi all, I am trying to build a page that uses a parent model (Game) and child models (Score). Game has the following fields: id, game_number, and date. Score has the following fields: player_id, player_finish, player_points, and game_id. In my scenario, there should always be 10 Score(s) per