Re: Saving Multiple Models in one save

2009-01-10 Thread Vincent Zhong
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 rhythmicde...@gmail.com wrote: Thank you thank you. That was exactly what I was looking for. -Original Message- From:

Re: Saving Multiple Models in one save

2008-12-24 Thread sijo jose
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 p...@webbedit.co.uk wrote: I haven't gotten around to using

Re: Saving Multiple Models in one save

2008-12-24 Thread Adriano Varoli Piazza
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

RE: Saving Multiple Models in one save

2008-12-24 Thread Steven Wright
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

Re: Saving Multiple Models in one save

2008-12-24 Thread Adriano Varoli Piazza
On 24 dic, 10:32, Steven Wright rhythmicde...@gmail.com 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

RE: Saving Multiple Models in one save

2008-12-24 Thread Steven Wright
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

RE: Saving Multiple Models in one save

2008-12-24 Thread Steven Wright
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

Re: Saving Multiple Models in one save

2008-12-10 Thread WebbedIT
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

Saving Multiple Models in one save

2008-12-08 Thread Cjo
Hi all, Well I have been using CakePHP and have been wonder stuck with its capabilities. But still there are some gaps which I have been trying to fill. Well I have been struck up with this problem for some time. Can any one help me out of this. I have 4 models. 1) Intimation-- Relation