Closed (fixed)
Project:
Entityreference backreference
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jan 2015 at 17:00 UTC
Updated:
24 Apr 2015 at 11:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jantoine commented@alex-rutz,
No, I believe you are correct. A cardinality setting allowing multiple values for a field creates a many to many relationship. That in reverse is still many to many (more than one).
A cardinality setting allowing a single value creates a many to one relationship. That in reverse is one to many, so from one node we should be able to retrieve many.
An example:
Content type Product has a single cardinality reference field to content type Company. Create Company A, Product B referencing Company A and Product C referencing Company A. Although Product B and Product C can only reference a single Company (A), Company A has multiple products referencing it (B and C).
Attached is a patch that reverses that last commit that broke this.
Comment #2
geek-merlinCode looks exactly like i imagined.
Will test as i come to it...
Comment #3
jsacksick commentedCommitted.