CreateOptions <Convert>
Index
Properties
optionalconvertCustomTypes
optionalmanaged
creates a managed entity instance instead, bypassing the constructor call
optionalpartial
this option disables the strict typing which requires all mandatory properties to have value, it has no effect on runtime
optionalpersist
persist the entity automatically - this is the default behavior and is also configurable globally via persistOnCreate
option
optionalprocessOnCreateHooksEarly
Property onCreate
hooks are normally executed during flush
operation.
With this option, they will be processed early inside em.create()
method.
optionalschema
create entity in a specific schema - alternatively, use wrap(entity).setSchema()
convert raw database values based on mapped types (by default, already converted values are expected)