public function since(): ?string
{ return '6.0.0.0';
} protected function defineFields(): FieldCollection
{ $collection =
new FieldCollection([ (new IdField('id', 'id'
))->
addFlags(new PrimaryKey(),
new Required()),
(new FkField('state_machine_id', 'stateMachineId', StateMachineDefinition::
class))->
addFlags(new Required()),
new ManyToOneAssociationField('stateMachine', 'state_machine_id', StateMachineDefinition::
class, 'id', false
),
(new StringField('entity_name', 'entityName'
))->
addFlags(new Required()),
(new FkField('from_state_id', 'fromStateId', StateMachineStateDefinition::
class))->
addFlags(new Required()),
(new ManyToOneAssociationField('fromStateMachineState', 'from_state_id', StateMachineStateDefinition::
class, 'id', false
))->
addFlags(new ApiAware()),
(new FkField('to_state_id', 'toStateId', StateMachineStateDefinition::
class))->
addFlags(new Required()),
(new ManyToOneAssociationField('toStateMachineState', 'to_state_id', StateMachineStateDefinition::
class, 'id', false
))->
addFlags(new ApiAware()),
new StringField('action_name', 'transitionActionName'
),
new FkField('user_id', 'userId', UserDefinition::
class),