Skip to content

Instantly share code, notes, and snippets.

@proofek
Created June 18, 2013 22:19
Show Gist options
  • Save proofek/5809988 to your computer and use it in GitHub Desktop.
Save proofek/5809988 to your computer and use it in GitHub Desktop.
SupplierContactDetailsRelate.php - definition of the relationship on the parent module without middle table (see https://gist.github.com/proofek/5809737 for the field definitions and https://gist.github.com/proofek/5809899 for the child module relationship definition)
<?php
$dictionary['Demo_Suppliers']['fields']['demo_suppliercontactdetails'] = array(
'name' => 'demo_suppliercontactdetails',
'type' => 'link',
'relationship' => 'demo_suppliers_emis_suppliercontactdetails',
'module' => 'Demo_SupplierContactDetails',
'bean_name' => 'Demo_SupplierContactDetails',
'source' => 'non-db',
'vname' => 'LBL_SUPPLIER_CONTACTDETAILS',
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment