Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
entity system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Jan 2015 at 10:10 UTC
Updated:
31 Jan 2015 at 16:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
larowlanComment #2
larowlanintroduced in #2232477: Fatal when adding new fields with NOT NULL constraints in a base table that contains existing entities
Comment #3
larowlanBlocker is in.
Comment #4
plachThere's a convenient
$item->hasNewEntity()method for that :)Comment #5
larowlanThanks
Comment #7
yched commentedThe logic provided by FileFormatterBase is now implemented, in a more solid way, by EntityReferenceFormatterBase.
I think we should get rid of FileFormatterBase, and have the existing file / image formatters extend EntityReferenceFormatterBase.
EntityReferenceFormatterBase is currently provided by entity_reference.module, but I think that's wrong, it should be in Core (like the ER formatters and widgets themselves, BTW)
Comment #8
yched commentedOpened #2404021: entity_reference formatters should be in Core
Comment #9
larowlanreroll
Comment #10
larowlanComment #11
larowlanTrying to think of how to test this, @alexpott said needs a test
Comment #12
larowlanComment #14
larowlanCan we move forward here without waiting for the other issue?
Simple patch with a test here.
Comment #15
yched commentedAgreed, let's do this.
Opened #2405469: FileFormatterBase should extend EntityReferenceFormatterBase, postponed on #2404021: entity_reference formatters should be in Core
Comment #16
larowlanThank you
Comment #17
webchickCommitted and pushed to 8.0.x. Thanks!
Comment #19
yched commentedUnpostponed #2405469: FileFormatterBase should extend EntityReferenceFormatterBase and posted an initial patch.