Closed (works as designed)
Project:
Entity Reference Revisions
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2016 at 06:51 UTC
Updated:
15 Sep 2016 at 14:06 UTC
Jump to comment: Most recent
Comments
Comment #2
miro_dietikerComment #3
jmuzz commentedI might be missing something but I think this is already working.
delete() gets called on each field item in the host entity when it is deleted, and the field type implements it to delete the composite entity in src/Plugin/Field/FieldType/EntityReferenceRevisionsItem.php .
I tested this with a basic setup and the field data inside the paragraph and the row in paragraphs_item were deleted.
Comment #4
miro_dietikerAnd while the issue was opened in july, it should already work since february...
But i can't see test coverage for it. :-)
Comment #5
jmuzz commentedThere's something in EntityReferenceRevisionsCompositeTest.php for it.
Comment #6
miro_dietikerYeah, great. So we can close this then. :-)