Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By jmertic

Thread: How to load all relationship names by module

  1. #1
    tobydz is offline Sugar Community Member
    Join Date
    Mar 2011
    Location
    Las Vegas, NV
    Posts
    144

    Default How to load all relationship names by module

    This is tricky - I have a module that has three one-to-many relationships to the Notes module. Is there a function I can call that will give me an array of all the relationship names to that Notes module.

    Some function like $ParentModuleBean->get_all_relationships('Notes');

    That would return and array containing:
    [0] contacts_notes
    [1] contacts_notes1
    [2] contacts_notes2

  2. #2
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    2,224

    Default Re: How to load all relationship names by module

    The best you could do would be to iterate thru all the relationships and dig thru each one to see if the matching module is there.
    tobydz likes this.
    John Mertic
    Sugar Community Manager

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: 2011-07-06, 10:07 AM
  2. Replies: 0
    Last Post: 2010-11-05, 11:07 AM
  3. Replies: 0
    Last Post: 2010-02-09, 06:28 PM
  4. Module won't load
    By rehlers in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2008-11-10, 06:40 PM
  5. Load 1 to many relationship
    By alearr in forum Developer Help
    Replies: 1
    Last Post: 2008-10-15, 01:51 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
  •