Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
entity system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 Feb 2014 at 08:00 UTC
Updated:
29 Jul 2014 at 23:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sunDrupal\system\Tests\Ajax\MultiFormTestis a nice + fast test case.Comment #2
berdirPretty sure it's caused by #2002134: Move TypedData metadata introspection from data objects to definition objects, looking into it.
Comment #3
berdirGrr.
\Serializable in PHP 5.4 is seriously messed up.
I have no idea what is exactly going on, but this seems to be working for me?!
Comment #4
fagoI don't think that code stems from #2002134: Move TypedData metadata introspection from data objects to definition objects, but it might have triggered the problem. #3 looks good to me
Comment #5
swentel commentedWe'v had this in Field API config conversion too - see #2074253: Fatal error when using Serializable interface on PHP 5.4
Comment #6
sunI noticed this mismatch in the inheritance chain, but changing it did not resolve it.
I also noticed a seemingly unintended self:: instead of static:: call to create() in DataDefinition, but changing that did not help either.
The patch in #3, however, passes for me locally.
Comment #7
alexpottOkay patch in #3 is committed d1bbfa7 and pushed to 8.x. Thanks!
Comment #9
sunhttps://qa.drupal.org/8.x-status :-)
Comment #10
yched commentedFor consistency, the __sleep() / __wakeup() should be added to EntityViewDisplay too.
Then this very same code is duplicated in 4 different config entity classes.
--> Revived #1977206: Default serialization of ConfigEntities.
Content entities have default serialization code in ContentEntityBase now, config entities should have theirs too.
Comment #11
swentel commentedSo this broke #2210873: Let plugin bags use the DependencySerializationTrait (was: EditorAdminTest fails on PHP 5.4 silently with unicorn editor) - but very silently, possibly depending on 5.4.X version as it's not catched by the bot.