Anyone? :)
On Fri, May 17, 2013 at 4:04 PM, Alex Bovey <[email protected]> wrote: > Hi all, > > In my Cake 2.3 app I'm using saveAll($this->request->data, array('deep' => > true)) to save deep model associations and the validation is working fine. > My input fields for any deeply associated models have the error class > applied if I try to submit the form having left them blank, which is great. > > The problem is that the Form helper isn't adding the "required" class to > the div of any deeply associated models - e.g.: > > ----- > > echo $this->Form->create('MyModel'); > echo $this->Form->input('MyModel.required_field); // this field correctly > has the "required" class :-) > echo $this->Form->input('MyRelatedModel.required_field); // this field > also has the "required" class :-) > echo $this->Form->input('MyRelatedModel.AnotherModel.required_field); // > this field does NOT have the "required" class :-( > > ----- > > Does anyone know of a solution? > > Thanks! > > Alex > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
