Hi, After a registration an user should be created, his club and to the club added an amount of players. First i thought in transactions, but i am sure that i can solve this with a saveAll, can't I?
To create users and their clubs i don't have any problems. The relations are: User hasOne Club, Club belongsTo User. As far as good. The relations between clubs and players i realized by a table ClubsPlayers and a Club hasAndBelongsToMany Player relation. MY PROBLEM is how i get filled the clubsplayers table automatically? 1.) Have i to add a HABTM relation to the players model too? 2.) How should look the $this->data array? a) Just an array of players like $this->data['Players'] = array($player1, $player2... or b) besides this array something like $this->data['ClubsPlayers'] = ... I dont get it to work! Thanks for any help :) 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
