Hi, i habe a model 'player' and a model 'skill_pool': Player hasOne SkillPool.
Now i want to randomize the player data and his skills and save everything at once, but it doesn't work this way: $this->Player->randomize(); $this->Player->SkillPool->randomize(); $this->Player->saveAll(); The player gets saved correctly. His skillpool not. Looks different when i use following: $this->Player->randomize(); $this->Player->SkillPool->randomize(); $this->Player->save(); // or saveAll - doesn't matter $this->Player->SkillPool->set('player_id', $this->Player->id); $this->Player->SkillPool->save(); QUESTION: Why i didn't get to save the SkillPool in the first example. How i have to manage a saving both at the same time without this "workaround" of example two? Thanks :) 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