yeah, i got that same "error" too... and, indeed, after having
committed to the db it should return true IMHO..
it got fixed in the meantime, see https://trac.cakephp.org/changeset/6337
On Jan 7, 9:17 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I *think* this is a bug. It always seemed t
I *think* this is a bug. It always seemed to return a false "failure"
message to me (even though the update actually ran), after some
digging I made the following change to /cake/lib/model/model.php in
the saveAll() function:
...
if ($options['atomic']) {
Heh. I'd build a dummy form with multiple records as demonstrated in
the previously linked post, then just dump the results to see what the
array looks like. :)
-r
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ca
Ok, so what happens if you aren't taking in data from a form?
For instance, in my example, I'm trying to loop through data from a
flat table, format it into an array, and call saveAll() on it to build
relational data.
A rough idea of what I'm trying to do:
++
http://groups.google.com/group/cake-php/browse_thread/thread/d097212f45f9f5ab
--~--~-~--~~~---~--~~
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 unsubsc
I'm working on the very same problem right now. I'm actually
attempting it the console, but it shouldn't make a difference. I
think it should likely be something similar to:
Array
(
[ModelName1] => Array
(
[fieldname1] => 'value'
[fieldname2] => 'value'
Does anyone know how to properly format an array that works with the
saveAll method? I have 3 associations in my data model, a hasMany and
an HABTM, how would my array be set up in order for the saveAll to
work? I'm stumped and can't seem to find any documentation on the
saveAll Method. Thanks in