CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Multiple instances of a relationship?
Pages: [1]

Author Topic: Multiple instances of a relationship?  (Read 984 times)

outinsun

  • Guest
Multiple instances of a relationship?
September 23, 2009, 08:04:45 am
I want to model the case where an individual has multiple instances of a relationship with an organization, reflecting different circumstances. The "circumstances" are represented by tags. I created a custom field for my relationship type that contains a tag id. However, once I define relationship "R" between individual "I" and organization "O" with tag id "23", if I then try to define R(I, O):45, nothing happens. If I delete R(I,O):23, I can then create R(I,O):45.

Is this a bug or an intentional limitation with relationships?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Multiple instances of a relationship?
September 23, 2009, 08:39:57 am

The system currently does not allow duplicate relationships with the same start/end date. I forget the reason why we introduced the rule, but i suspect in most cases you dont want the same relationship twice (but there are always exceptions)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

outinsun

  • Guest
Re: Multiple instances of a relationship?
September 23, 2009, 08:52:07 am
Quote from: Donald Lobo on September 23, 2009, 08:39:57 am

The system currently does not allow duplicate relationships with the same start/end date. I forget the reason why we introduced the rule, but i suspect in most cases you dont want the same relationship twice (but there are always exceptions)

lobo

If I give the two instances different start dates, and no end date, it seems to work fine, and both show up as active relationships. Search by relationship seems to work fine too. As long as I don't care about dates (which I don't think I do) that would suffice for my needs. Thanks.

outinsun

  • Guest
Re: Multiple instances of a relationship?
September 24, 2009, 06:53:36 am
Quote from: outinsun on September 23, 2009, 08:52:07 am
Quote from: Donald Lobo on September 23, 2009, 08:39:57 am

The system currently does not allow duplicate relationships with the same start/end date. I forget the reason why we introduced the rule, but i suspect in most cases you dont want the same relationship twice (but there are always exceptions)

lobo

If I give the two instances different start dates, and no end date, it seems to work fine, and both show up as active relationships. Search by relationship seems to work fine too. As long as I don't care about dates (which I don't think I do) that would suffice for my needs. Thanks.
On second thought decided this is a goofy solution. Can't set start date to earlier than 1989 anyway. instead I made the custom field in my relationship a multi-select and it appears to work just as I want it to.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Multiple instances of a relationship?

This forum was archived on 2017-11-26.