Well I have used it, never had problem ..Another solution is to $uses
= array('Model1', 'Model2') then $this->Model2->save($this->data) ...

I really do not know what would change using this ...

On Jul 19, 5:04 pm, Spectacularium <[EMAIL PROTECTED]> wrote:
> I read somewhere here about people having problems with the wrong ID
> being set when you have more then one model's information in the data.
> I didn't have time to check this out properly but to avoid it I use
>
>  $this->Model1->Model2->save( $this->data['Model2'] );
>
> Just thought you might find this useful.... :-S
>
> On Jul 19, 2:27 pm, francky06l <[EMAIL PROTECTED]> wrote:
>
> > $this->Model1->Model2->save($this->data ... )
>
> > On Jul 19, 2:04 pm, Mithun <[EMAIL PROTECTED]> wrote:
>
> > > I have two different models Model1 and Model2. Model1 is related as
> > > hasMany with Model2.And Model2 belongsTo Model1. I want to save the
> > > form data to the fields of Model2 calling a save action from Model1.
> > > How to achieve it.
> > > I am using Cake's version : cake_1.1.15.5144


--~--~---------~--~----~------------~-------~--~----~
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