Skip to main content
Version: 6.1

CreateOptions

Index

Properties

optionalmanaged

managed?: boolean

creates a managed entity instance instead, bypassing the constructor call

optionalpartial

partial?: boolean

this option disables the strict typing which requires all mandatory properties to have value, it has no effect on runtime

optionalpersist

persist?: boolean

persist the entity automatically - this is the default behavior and is also configurable globally via persistOnCreate option

optionalschema

schema?: string

create entity in a specific schema - alternatively, use wrap(entity).setSchema()