Answers.Body: <p>This is now possible and there is a patch to optionally allow bi-directional relationships in <a href="https://issues.civicrm.org/jira/browse/CRM-19630" rel="nofollow noreferrer">JIRA</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-10T20:01:16.187Z
Answers.LastActivityDate: 2016-11-10T20:01:16.187Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>Doing some research on your find using svn blame and svn log on the old svn repo, this appears to have been implemented as part of <a href="https://issues.civicrm.org/jira/browse/CRM-58" rel="nofollow">https://issues.civicrm.org/jira/browse/CRM-58</a>, and the key comment is</p>
  
  <p>i.e. if there is "Parent" relationship between 2 contacts then you cannot add another relationship "child " between them.</p>
  
  <p>The code for this is also what's stopping adding the second "favourite". So it seems like the checking is too aggressive - makes sense to prevent the parent being a child of their spouse (except in some geographical regions where it might be true (grin)), but not your use-case.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-05T05:25:05.570Z
Answers.LastActivityDate: 2016-07-05T05:25:05.570Z
Answers.UserDisplayName: Demerit
Body: <p>Goal is to let X "favourite" Y and vice versa</p>
  
  <p>But seems that civi won't let us do both between the same two contacts, ie we cannot let X favourite Y and at same time have Y favourites X. </p>
  
  <p>Is it meant to be impossible to have 2 people with same relationship twice, once in either direction?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-09-03T09:19:48.063Z
Comments.Text: We have had this fixed but i haven't had a chance to get the extension published or shared.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-02T19:50:13.433Z
Comments.Text: note to self: r10680
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-07-04T22:10:24.727Z
Comments.Text: I can't think why it wouldn't allow this - what happens if you manually insert the 2nd in the civicrm_relationship table?
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-07-05T04:51:01.153Z
Comments.Text: it works fine. Looks like there is some code in https://github.com/civicrm/civicrm-core/blob/21cea480ee729320e15c71abdfa47f84a6bbdece/CRM/Contact/BAO/Relationship.php#L846 that is prohibiting this. so maybe an extension that provides a per relationship checkbox to permit (or prohibit depending which should be default) bi-directional relationships
Comments.UserDisplayName: petednz - fuzion
Tags: <relationships>
Title: Can we use a Relationship between 2 contacts, once in either direction?
ThreadText: # Can we use a Relationship between 2 contacts, once in either direction?
  
  (Asked by: username_0 on 2016-07-04)
  
  Goal is to let X "favourite" Y and vice versa
  
  But seems that civi won't let us do both between the same two contacts, ie we cannot let X favourite Y and at same time have Y favourites X.
  
  Is it meant to be impossible to have 2 people with same relationship twice, once in either direction?
  
  **Tags:** relationships
  
  > **Comments:**
  > **username_1**: I can't think why it wouldn't allow this - what happens if you manually insert the 2nd in the civicrm_relationship table?  
  > **username_0**: it works fine. Looks like there is some code in https://github.com/civicrm/civicrm-core/blob/21cea480ee729320e15c71abdfa47f84a6bbdece/CRM/Contact/BAO/Relationship.php#L846 that is prohibiting this. so maybe an extension that provides a per relationship checkbox to permit (or prohibit depending which should be default) bi-directional relationships  
  > **username_0**: We have had this fixed but i haven't had a chance to get the extension published or shared.  
  > **username_0**: note to self: r10680  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2016-11-10. Score: 1 | Accepted answer
  
  This is now possible and there is a patch to optionally allow bi-directional relationships in [JIRA](https://issues.civicrm.org/jira/browse/CRM-19630)
  
  
  ---
  
  ### Answer by username_1 on 2016-07-05. Score: 3
  
  Doing some research on your find using svn blame and svn log on the old svn repo, this appears to have been implemented as part of <https://issues.civicrm.org/jira/browse/CRM-58>, and the key comment is
  
  i.e. if there is "Parent" relationship between 2 contacts then you cannot add another relationship "child " between them.
  
  The code for this is also what's stopping adding the second "favourite". So it seems like the checking is too aggressive - makes sense to prevent the parent being a child of their spouse (except in some geographical regions where it might be true (grin)), but not your use-case.
  
  
  ---
  
  