Page MenuHomePhabricator

Mark Message as NonSerializable
Open, MediumPublic

Description

The Message object should be marked as non-serializable using NonSerializableTrait.

Serializing Message objects can drag along large amounts of data. Deserialized user objects may contain stale data. This is the case especially for the following member fields of Message:

  • $language Language objects may contain a lot of data, and references to service objects
  • $content Content objects may contain references to services

Related Objects