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 hasOne (SamplingDetail)
            id

2) SamplingDetail
                  id
                  intimation_id
                  processor_id        -- Relation belongsTo
(Processor)

3)Processor
                  id
                  contact_id             -- Relation belongsTo
(Contact)

4) Contact
                  id
                  firstName

Now I have a form where I am saving (saveAll) the details of a
Intimation which is made of the following relationship.

When I am saving Intimation,  Intimation details gets saved perfectly
with the details of SamplingDetail. But the details of corresponding
Processor and  Contact are not getting saved.

The form looks something like this

 <?php echo $form->create('Intimation');?>

     <?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'); ?>
<?php echo $form->end(); ?>


When I submit the form the details of Intimations, its samplingDetail
are getting saved. But not the firstName and address which are in
Contact. Processor is also not being created.

Any help would be of great help.

Regards

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to