Results 1 to 3 of 3

Thread: Relationships Confusion

  1. #1
    tomcdonnell is offline Senior Member
    Join Date
    Mar 2010
    Posts
    23

    Default Relationships Confusion

    I am confused by relationships between modules in general.

    From studio->campaigns->relationships, the campaigns module can only be linked to other modules using a one-to-one relationship. Yet from studio->documents->relationships, the documents module can be linked to the campaigns module using a one-to-one or one-to-many (but not a many-to-many) relationship.

    Questions:
    * Why are some relationships between some modules unable to be created using studio?
    * Why can some pairs of modules be linked one-to-many in one direction, but not many-to-one in the other direction?

  2. #2
    agcopley is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Santiago, Chile
    Posts
    204

    Default Re: Relationships Confusion

    Quote Originally Posted by tomcdonnell View Post
    I am confused by relationships between modules in general.

    From studio->campaigns->relationships, the campaigns module can only be linked to other modules using a one-to-one relationship. Yet from studio->documents->relationships, the documents module can be linked to the campaigns module using a one-to-one or one-to-many (but not a many-to-many) relationship.

    Questions:
    * Why are some relationships between some modules unable to be created using studio?
    * Why can some pairs of modules be linked one-to-many in one direction, but not many-to-one in the other direction?
    There is a bug in the campaigns module that prevents 1:M relationships being made. Rather than fix it Sugar just prevent you from making them. Good eh?

  3. #3
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    553

    Default Re: Relationships Confusion

    Also, in addition to Campaigns relationship being hard-coded as One to One, Studio and Module Builder don't allow you to create a Many to One relationship.

    I don't know the reason and it never made sense to me since, particularly in Module Builder I see the most common scenario being a new module with a Many to One relationship to Accounts or Contacts.

    The workaround is to create the module in Module Builder, then go to Studio and create the relationship from the module on the One to Many side. Kind of a pain that you can't complete the design in Module Builder if you ask me.

    Phil

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mobile Capabilities in 5.2 confusion
    By clivecchi in forum General Discussion
    Replies: 2
    Last Post: 2009-04-19, 01:26 PM
  2. SOAP Confusion
    By Dave0101 in forum Developer Help
    Replies: 5
    Last Post: 2007-06-19, 11:34 PM
  3. Customization Confusion
    By Headjoog in forum Developer Help
    Replies: 2
    Last Post: 2006-05-18, 10:53 AM
  4. End User Confusion
    By atheimer98 in forum General Discussion
    Replies: 1
    Last Post: 2006-04-12, 07:08 PM
  5. Schema Confusion
    By rcreamer in forum General Discussion
    Replies: 1
    Last Post: 2006-04-11, 09:29 PM

Tags for this Thread

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
  •