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