Results 1 to 2 of 2

Thread: disable auto generation for join_key_lhs/rhs

  1. #1
    zaska's Avatar
    zaska is offline Senior Member
    Join Date
    Sep 2008
    Posts
    99

    Default disable auto generation for join_key_lhs/rhs

    HI,

    I'm building a custom module with Studio. That module has a link to Projects and ProspectTasks. My question is why join_key_lhs and join_key_rhs are autogenerated to something like 'mymod09ule_ida' and 'modufab6project_idb'?

    custom/modulebuilder/packages/_PACKAGE_/modules/_MODULENAME_/relationships.php looks like:

    Code:
      'mymodule_project' =>
      array (
        'rhs_label' => 'Projects',
        'lhs_label' => 'MyModule',
        'lhs_subpanel' => 'ForProjects',
        'rhs_subpanel' => 'ForMyModule',
        'lhs_module' => 'mymodule',
        'rhs_module' => 'Project',
        'relationship_type' => 'many-to-many',
        'readonly' => false,
        'deleted' => false,
        'relationship_only' => false,
        'for_activities' => false,
        'is_custom' => false,
        'relationship_name' => 'mymodule_project',
        'join_table' => 'mymodule_project',
        'join_key_lhs' => 'mymodule_ida',
        'join_key_rhs' => 'project_idb',
      ),
    join_key_lhs and join_key_rhs from that array are ignored. Is this a normal behavior and how to use my own keys instead of that auto-generated?

    SugarCRM 5.2.0e CE

  2. #2
    zaska's Avatar
    zaska is offline Senior Member
    Join Date
    Sep 2008
    Posts
    99

    Default Re: disable auto generation for join_key_lhs/rhs

    I'm editing SugarModules/relationships/relationships/mymeta.php in the zip file and manualy changing the keys and etc.. Very ugly

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 2008-02-11, 05:15 AM
  2. id generation
    By ajazza in forum Developer Help
    Replies: 0
    Last Post: 2006-08-20, 04:05 AM
  3. bug id generation
    By markybob in forum Developer Help
    Replies: 1
    Last Post: 2006-03-21, 06:55 AM
  4. id generation in accounts_contacts
    By smoke in forum Developer Help
    Replies: 2
    Last Post: 2005-11-11, 05:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •