Results 1 to 4 of 4

Thread: relationship data in Sugar 5.1

  1. #1
    Nisbet is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    42

    Default relationship data in Sugar 5.1

    Hi,


    does anyone know where the relationship data is stored in a sugar 5.1 system? By data I mean if I associate customA with customB , where is the association customA.id, customB.id stored? I don't see anything in the database,and haven't found anything looking through the source.

    Thanks

    Andrew

  2. #2
    catherinema's Avatar
    catherinema is offline Sugar Team Member
    Join Date
    Aug 2008
    Location
    Shanghai, China
    Posts
    103

    Default Re: relationship data in Sugar 5.1

    There are three relationships in Sugar, one-to-one, one-to-many and many-to-many.
    one-to one and one-to-many is defined in the vardefs.php of the module.
    many-to-many is defined under {sugar}/metadata directory.
    By the way, if you create a new relationship, it is saved under ./custom/metadadta directory.

  3. #3
    Nisbet is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    42

    Default Re: relationship data in Sugar 5.1

    catherinema,

    Thanks for the response. I need to provide a better explanation of my problem. I am trying to figure out where the actual data the represents a one-many relationship is stored. So for example if I associate entryX(the many) with entryY(the one), where is the data regarding that relationship stored. If it were a many to many relationship an entry in a table called something like typex_typey would be created, but for one-to-many that seems to not be that case.

  4. #4
    Nisbet is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    42

    Default Re: relationship data in Sugar 5.1

    Looks like I need to pay attention, there actually are tables created for one-to-many relationships.

    Sorry everyone.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Query Failed: AND users.id = '1'::MySQL error 1064:
    By artco001 in forum Installation and Upgrade Help
    Replies: 63
    Last Post: 2009-05-07, 05:56 AM
  2. Install fails...insert admin user twice???
    By jweinberger in forum Installation and Upgrade Help
    Replies: 7
    Last Post: 2007-03-14, 04:07 AM
  3. problem step 7 version SugarOS-4.5.0f
    By lucia in forum Help
    Replies: 1
    Last Post: 2006-12-27, 01:21 PM
  4. Asterisk Patch 1.1.0 Crash on logon
    By skyracer in forum Help
    Replies: 6
    Last Post: 2006-07-08, 06:30 AM

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
  •