So I have a form in my domains/add view. All the domain input fields save their data just fine when the form is submitted. The problem is that there is another field (Characters.0.character_id) that is to save its data to an hasMany associated join model (CharactersDomain). In the CharactersDomain model I have added a validation rule to the "character_id" which I have set to always fail for testing purposes. When I use saveAll to save the Domain data and the associated character_id in the CharactersDomain the Domain record is saved to the database but the CharactersDomain record is not (because the validation failed).
So I have 2 questions: 1: I thought saveAll was only to save the data if all the validations passed. Why was the Domain record saved if the CharactersDomain record failed its validation? 2: When the CharactersDomain fails, I want it to display its error message on the Characters.0.character_id input. Why did it not show the error? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
