Hi since the saveAll method of cake only support upto one level, how
can we save the data from one form into 4 models??
thanks.
On Dec 25 2008, 5:22 am, Steven Wright
wrote:
> Thank you thank you. That was exactly what I was looking for.
>
> -Original Message-
> From: cake-php@googlegrou
Thank you thank you. That was exactly what I was looking for.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Adriano Varoli Piazza
Sent: Wednesday, December 24, 2008 8:05 AM
To: CakePHP
Subject: Re: Saving Multiple Models in one
Thank you very much.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Adriano Varoli Piazza
Sent: Wednesday, December 24, 2008 8:05 AM
To: CakePHP
Subject: Re: Saving Multiple Models in one save
On 24 dic, 10:32, Steven Wright wrote
On 24 dic, 10:32, Steven Wright wrote:
> What does the 0 do?
Make it work :)
Seriously, you can add multiple items in this fashion, such as
Patrimonio.1.tipo, Patrimonio.2.tipo, etc., and they'll be saved in
sequence from a single form.
However, I doubt that this is the problem, I suspect more
What does the 0 do?
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Adriano Varoli Piazza
Sent: Wednesday, December 24, 2008 7:26 AM
To: CakePHP
Subject: Re: Saving Multiple Models in one save
In a similar situation, my add view
In a similar situation, my add view looks like this:
echo $form->label('Patrimonio.0.tipo', 'Label text:');
echo $form->text('Patrimonio.0.tipo');
Notice the 0.
--
Saludos,
Adriano
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Well sorry for not being prompt,
Presently cakePHP supports saving models upto level one only.
So I have changed my code accordingly.
Thanks for your reply which was helpfull.
Regards
Sijo
On Wed, Dec 10, 2008 at 2:52 PM, WebbedIT wrote:
>
> I haven't gotten around to using saveAll() as yet, b
I haven't gotten around to using saveAll() as yet, but I did spot that
you haven't created a belongsTo relation from SamplingDetail to
Intimation to close the hasOne/belongsTo relationship between the two
models.
Similarly best practice dictates you should create hasOne
relationships for
Process