()
| 359 | } |
| 360 | |
| 361 | const create = () => |
| 362 | EntityAssigner.validateEM(em) && |
| 363 | em.getEntityFactory().createEmbeddable<T>(prop.targetMeta!.class, value, { |
| 364 | convertCustomTypes: options.convertCustomTypes, |
| 365 | newEntity: options.mergeEmbeddedProperties ? !('propName' in entity) : true, |
| 366 | }); |
| 367 | entity[propName] = (options.mergeEmbeddedProperties ? entity[propName] || create() : create()) as EntityValue<T>; |
| 368 | |
| 369 | Object.keys(value).forEach(key => { |
nothing calls this directly
no test coverage detected