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
Processor->SamplingDetail
Contact->Processor
Not that I think this will necessarily solve your saleAll issue but it
is good practice to do so.
Without using the saveAll function myserlf I can only hazard guesses
at what you can look at. I tried looking for a recursive property to
try and tell the function to go more than 1 level deep, but that
doesn't exist. What happens if you change the fields from
<?php echo $form->input('SamplingDetail.package_description'); ?>
<?php echo $form->input('SamplingDetail.lot_number'); ?>
<?php echo $form->input('SamplingDetail.invoice_number'); ?>
<?php echo $form->input
('SamplingDetail.Processor.Contact.firstName'); ?>
<?php echo $form->input
('SamplingDetail.Processor.Contact.address'); ?>
to
<?php echo $form->input('SamplingDetail.package_description'); ?>
<?php echo $form->input('SamplingDetail.lot_number'); ?>
<?php echo $form->input('SamplingDetail.invoice_number'); ?>
<?php echo $form->input
('Contact.firstName'); ?>
<?php echo $form->input
('Contact.address'); ?>
The fact that Intimation model fields will save from
<?php echo $form->input('Intimiation.field1'); ?>
And SamplingDetail fields will save from
<?php echo $form->input('SamplingDetail.field2'); ?>
Means other related fields should save from
<?php echo $form->input('Processor.field3'); ?>
<?php echo $form->input('Contact.field4'); ?>
Hopefully someone else can join in and clear this up ;)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---