Do you mean that this code works:

>$this->model1->model2->save($this->data)
>
>   and the below has to be:
>
>$this->model1->model2->data = $this->data;
>$this->model1->model2->validates();

Both models are validated and error messages are displayed ???

On Nov 7, 3:05 pm, "R. Rajesh Jeba Anbiah"
<[EMAIL PROTECTED]> wrote:
> On Nov 7, 1:55 pm, I, ("R. Rajesh Jeba Anbiah"
>
> <[EMAIL PROTECTED]>) wrote:
> > > 2. From controller1::add()
> > > $this->model1->model2->save($this->data['model2']) correctly shows the
> > > validation error message in 'model2.x'
>
>    In case, if someone refers this thread, the above save() call has
> to be:
> $this->model1->model2->save($this->data)
>
>    and the below has to be:
>
> $this->model1->model2->data = $this->data;
> $this->model1->model2->validates();
>
>    instead
>
>   <snip>
>
> > $this->model1->model2->data = $this->data['model2'];
> > $this->model1->model2->validates();
>
> --
>   <?php echo 'Just another PHP saint'; ?>
> Email: rrjanbiah-at-Y!com    Blog:http://rajeshanbiah.blogspot.com/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to