I am working on a product database and each product will have various
specs


var $hasOne=array('Battery'=>
                                        array('className'    => 'Battery',
                    'foreignKey'   => 'product_id',
                    'conditions'   => '',
                                'dependent'    =>  true,
                    'order'        => '')
                           ,'Build'=>
                                        array('className'    => 'Build',
                    'foreignKey'   => 'product_id',
                    'conditions'   => '',
                                'dependent'    =>  true,
                    'order'        => '')
        );

Is it correct ?

Im getting the data in the controller .

Im using scaffolding for the view and not getting anything there except
for the Model:Product

Should i write my own view for this or is there any why I can do
scaffolding for the dependent Models which depend on the main Modell :
Product


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to