If I understand correctly it is now only possible to make relations between an organisation and (several) contacts and between contacts themselves. But it is not possible to make relations between organisations. I have a list of organisations that are related to one governing body, so I would like to express that.

Could that be made possible?

(Or am I just missing something somewhere?)

Comments

seanberto’s picture

Status: Active » Closed (works as designed)

When you define an relationship entity bundle, you choose which entity types and bundles can be related.

Organization to organization relationships are supported. You just need to create/configure a new relationship bundle to test this out.

seanberto’s picture

Status: Closed (works as designed) » Postponed

Actually, I just realized that what I wrote was wrong. RH doesn't currently support these relationships. I guess that you could "fake it" with an entity reference field on organization entities...

Marking this as a feature request.

levelos’s picture

Component: Current » Shared
Status: Postponed » Fixed

This should now be possible. Give it a spin and let us know.

micnap’s picture

Status: Fixed » Active

Hi,

I just downloaded the alpha2 version - fresh install or d7 and redhen and dependencies. I created a relationship between All Organization Bundles called Related Organizations. When I go to an org to add the connection, I am getting the following error on the connections/add page:

Notice: Undefined variable: endpoint_entity_type in redhen_relation_connection_form() (line 38 of /home/quickstart/websites/pacb2.dev/sites/all/modules/redhen/modules/redhen_relation/includes/redhen_relation.forms.inc).

And when I choose my Related Organization relation type in the dropdown, I get the autocomplete field for contacts, not Organizations.

Thanks,
Mickey

micnap’s picture

Uh, hang on. I'm getting that error no matter what type of connection I'm trying to add. Even without custom relationship types on the site. I've completely uninstalled RH membership and RH relation modules and reinstalled RH relation, cleared cache, and am still getting the error without custom relationships.

Mickey

levelos’s picture

Status: Active » Fixed

Just pushed some more code to polish this up and it's working in my local tests. Please give it a spin Mickey, and thanks again for working through these issues with us. This relation business is a bit tricky.

micnap’s picture

Hi,

Just did a fresh install of alpha2 and am still getting the same as in #4 and #5. Were the changes definitely pushed up?

Thanks,
Mickey

levelos’s picture

They're not in alpha 2, the changes have happened since that release. The only way to have the latest code is to do a git checkout and then pull in any updates. At this point in the development cycle, it's the best bet for having the latest code. Snapshots are only released nightly.

micnap’s picture

Woohoo! Works great now. Off to study what the heck you did to get this working.

Thanks!
Mickey

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

added question about me missing something