$ open source · GPL-3.0 — need a commercial license? imqueue.com →

BaseModel.restoreSerialization() method

Forgets the returning column list, so serializing emits every loaded column again.

Signature:

restoreSerialization(): this;

Returns:

this

This instance, for chaining.

Remarks

A write that named its returning columns leaves that list on the instance, and toJSON() honours it from then on. Call this when the same instance is reused for something that should serialize in full.