Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment #0
Problem/Motivation
EntityReferenceItem references other entities' IDs in the schema, but does not specify an appropriate foreign key.
Proposed resolution
Make EntityReferenceItem provide a proper foreign key.
Remaining tasks
User interface changes
-
API changes
Comment | File | Size | Author |
---|---|---|---|
#39 | 2209067-39-entity-reference-item-foreign-key.patch | 789 bytes | anmolgoyal74 |
#34 | 2209067-34.patch | 769 bytes | anmolgoyal74 |
#32 | 2209067-32.patch | 779 bytes | anmolgoyal74 |
#29 | interdiff-26-29.txt | 2.56 KB | jofitz |
#29 | 2209067-29.patch | 788 bytes | jofitz |
Comments
Comment #1
tstoecklerSo I remember there was an issue where this was discussed with @yched and @amateescu where the foreign keys where dropped (which exist in the D7 version of ER), but I can't find it right now and I don't remember the exact reasoning/situation back then either. I assume there weren't any field item schemas at the time. Anyway, I think this makes sense.
Comment #2
tstoecklerActually we should probably rename those variables to the new style.
Comment #5
tstoecklerSo I totally botched up the definition of the foreign keys...
Comment #8
AndrewsizZ CreditAttribution: AndrewsizZ commentedHey, rerolled patch and added small fix with variable name.
Comment #14
borisson_Patch no longer applies.
Comment #15
AndrewsizZ CreditAttribution: AndrewsizZ as a volunteer and at Bright Solutions GmbH for Bright Solutions GmbH commentedUp to date patch for 8.x-5.x
Comment #16
AndrewsizZ CreditAttribution: AndrewsizZ as a volunteer and at Bright Solutions GmbH for Bright Solutions GmbH commentedComment #18
borisson_@AndrewsizZ please don't test all environments, 1 is sufficient until we know that it passes all tests. As soon as that's fixed, you can test more databases (because this does touch the database layer), but it's not needed to test on all php versions.
Comment #19
mahaveer003 CreditAttribution: mahaveer003 as a volunteer and at Valuebound commentedAdded patch took reference from comment #15 and I have removed one unused variable and added interdiff file also.
Please review.
Comment #20
mahaveer003 CreditAttribution: mahaveer003 as a volunteer and at Valuebound commentedComment #22
anmolgoyal74 CreditAttribution: anmolgoyal74 at OpenSense Labs for DrupalFit commentedrerolled patch
Comment #23
anmolgoyal74 CreditAttribution: anmolgoyal74 at OpenSense Labs for DrupalFit commentedComment #25
MerryHamster CreditAttribution: MerryHamster at Skilld commentedComment #26
MerryHamster CreditAttribution: MerryHamster at Skilld commentedrerolled patch and added small changes
Comment #27
MerryHamster CreditAttribution: MerryHamster at Skilld commentedComment #29
jofitz CreditAttribution: jofitz at ComputerMinds commentedRemove redundant changes.
Comment #32
anmolgoyal74 CreditAttribution: anmolgoyal74 at OpenSense Labs for DrupalFit commentedRe-rolled the patch for 8.7.x
Comment #34
anmolgoyal74 CreditAttribution: anmolgoyal74 at OpenSense Labs for DrupalFit commentedComment #39
anmolgoyal74 CreditAttribution: anmolgoyal74 at OpenSense Labs for DrupalFit commentedAdded patch for 9.1.x.
Comment #45
smustgrave CreditAttribution: smustgrave at Mobomo commentedThink some of the rerolls got off from #8. They just seem to jump all over the place adding some stuff back, taking it out but never saying why.