Re: Saving multiple models/relationships with saveAll()

2009-04-29 Thread Martin Westin
Trac is the place to add an RFC or enhancement ticket for a future version. Since 1.2 is still young you might wait a good while but on the other hand now is the time new features are evaluated... not during beta. https://trac.cakephp.org/ On Apr 28, 9:42 pm, rartavia royarta...@gmail.com

Re: Saving multiple models/relationships with saveAll()

2009-04-29 Thread rartavia
Hi there, thanks for you answer. I placed the ticket, will see what happens. https://trac.cakephp.org/ticket/6331 Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send

Re: Saving multiple models/relationships with saveAll()

2009-04-28 Thread Martin Westin
I don't use saveAll much myself but oen thing you can look into is the phrasing that explains what it does. I remember reading that saveAll can save multiple records of a single model OR one record and multiple related Models. I am not sure it ca do both at the same time the way you are trying.

Re: Saving multiple models/relationships with saveAll()

2009-04-28 Thread rartavia
Hello, thanks Martin. I reviewed saveAll() docs and it explicitly tells it wont work for not directly associated models. (http://book.cakephp.org/view/75/Saving-Your-Data) It would be nice for a future version of cake to have it though. Where does one submits this kind of petitions to cake

Re: Saving multiple models/relationships with saveAll()

2009-04-28 Thread rartavia
This is how I worked out saving not directly related data using saveAll in one single Ajax call: I send the data exactly the same, as in this discussion's first message, with the non directly related model INSIDE the directly related model (SectionParts INSIDE data[Section])

Saving multiple models/relationships with saveAll()

2009-04-27 Thread rartavia
I'm saving to one main table with several kind of relations by sending all in a single array via Ajax (jQuery). One is a nested relation, denouncements (main table) hasMany sections (other-model) which hasMany section_parts (another-model). Sending to saveAll in a single array i'm being able to