Skip to content

Instantly share code, notes, and snippets.

@proofek
Created July 25, 2013 16:02
Show Gist options
  • Save proofek/6081214 to your computer and use it in GitHub Desktop.
Save proofek/6081214 to your computer and use it in GitHub Desktop.
relationship definition for a relate field created using proper relationship
<?php
'accounts_related_user' => array(
'lhs_module' => 'Users',
'lhs_table' => 'users',
'lhs_key' => 'id',
'rhs_module' => 'Accounts',
'rhs_table' => 'accounts',
'rhs_key' => 'related_user_id',
'relationship_type' => 'one-to-many',
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment