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 cake-php@googlegroups.com
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