DependencySerializationTrait serializing ContentEntityBase causes a fatal error

Created on 22 August 2014, over 10 years ago
Updated 10 September 2024, 4 months ago

Problem/Motivation

DependencySerializationTrait serializing ContentEntityBase causes a fatal error, because ContentEntityBase::__isset()

  1. ContentEntityBase::hasField()
  2. ContentEntityBase::getFieldDefinition()
  3. ContentEntityBase::getFieldDefinitions()
  4. ContentEntityBase::bundle()
  5. ContentEntityBase::getEntityKey()
  6. ContentEntityBase::getFieldDefinition()
  7. ...

Proposed resolution

Add a hardcoded check.

Remaining tasks

None.

User interface changes

None.

API changes

None.

🐛 Bug report
Status

Closed: outdated

Version

11.0 🔥

Component
Entity 

Last updated about 16 hours ago

Created by

🇬🇧United Kingdom Xano Southampton

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom catch

    _serviceId is no longer used as of https://www.drupal.org/node/3292540 , so the patch can't work. Moving to needs more info - the issue summary doesn't describe how this ends up happening in the first place, which makes it hard to think about test coverage.

  • Status changed to Closed: outdated 4 months ago
  • 🇳🇿New Zealand quietone

    Based on #20 and the lack of more information, which was asked for over 1 year ago, I think it is time to close this issue.

Production build 0.71.5 2024