https://bugzilla.wikimedia.org/show_bug.cgi?id=72158

Daniel Kinzler <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from Daniel Kinzler <[email protected]> ---
For cases where getContent() is called to look at the EntityContent, but
getEntity() is never called on it, we could could give EntityContent a flag
that tells it to copy the Entity object when getEntity() is called (or even
copy the Entity every time). EntityContent::copy could then just return $this.

We could also defer the deserialization of the Entity until getEntity is called
(EntityContent would get some sort of SerializedEntity object instead of an
actual Entity). 

We could further have special logic in EntityContent::getEntityId() that would
extract the ID from the serialized version without actually unserializing the
full Entity.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to