I am working on magento custom module [created by module creator]. There is a requirement to create a Child table which maintains the relation to the default/parent table by means of primary/foreign key references.
There is a one-to-many relation from parent-to-child table.
I need to have the Grid interface and Edit interface to update/save all relevant data.
Please, provide me the way to manage this module.
I have just tried the join clause on default data collection as below:
===============================
In protected function _prepareCollection() At "\app\code\local\Klimaire\WarrantyRegProd\Block\Adminhtml\WarrantyRegProd\"
$collection->getSelect()->joinLeft('warrantyregprod_child','main_table.warrantyregprod_id = warrantyregprod_child.warrantyregprodID', 'warrantyregprod_child.prodcode');
===============================