MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / cloneEmbeddable

Method cloneEmbeddable

packages/mongodb/src/MongoPlatform.ts:103–108  ·  view source on GitHub ↗
(data: T)

Source from the content-addressed store, hash-verified

101 }
102
103 override cloneEmbeddable<T>(data: T): T {
104 const ret = super.cloneEmbeddable(data);
105 Utils.dropUndefinedProperties(ret);
106
107 return ret;
108 }
109
110 override shouldHaveColumn<T>(prop: EntityProperty<T>, populate: PopulateOptions<T>[], exclude?: string[]): boolean {
111 if (super.shouldHaveColumn(prop, populate, exclude)) {

Callers 2

addParamsFunction · 0.80
getSnapshotGeneratorMethod · 0.80

Calls 1

Tested by

no test coverage detected