This topic contains 2 replies, has 2 voices, and was last updated by cardiac 8 years, 12 months ago.
- Topic
Hi,
I created a new workflow where I have EntityA.
I want to create EntityB fill columna and columnb and set EntityA.Error is a DB error:
message: “Can’t create entity AppBundle\Entity\Entityb. An exception occurred while executing ‘INSERT INTO app_entityb (columna, columnb, createdAt, updatedAt, workflow_item_id, workflow_step_id, entitya_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?)’ with params [null, null, “2015-04-23 10:22:38”, “2015-04-23 10:22:38″, null, null, 4]:↵↵SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘columna’ cannot be null”
Nametransition.yml
123456789101112131415161718192021start_entityb:label: 'Start entityb'step_to: new_entitybis_unavailable_hidden: trueacl_resource: app_entityb_createfrontend_options:icon: 'icon-ok'class: 'btn-primary'transition_definition: start_entityb_definitionform_options:attribute_fields:entityb_columna:options:required: trueconstraints:- NotBlank: ~entityb_columnb:options:required: trueconstraints:- NotBlank: ~transition_definition.yml
1234567891011121314start_entityb_definition:post_actions:- @create_entity: # create a entitybclass: AppBundle\Entity\Entitybattribute: $.result.entitybflush: truedata:entitya: $entityacolumna: $entityb_columnacolumnb: $entityb_columnb- @redirect: # redirect to entityb view pageroute: 'app_entityb_view'route_parameters:id: $.result.entityb.idattributes.yml
1234567891011entityb:label: entitybproperty_path: salesfunnel.entitybentityb_square_meter:label: Square meterproperty_path: salesfunnel.entityb.columnatype: floatentityb_room_type:label: Room typeproperty_path: salesfunnel.entityb.columnbtype: stringHow to set the values from workflow form to the new Entity?
Thanks and
best regards
The forum ‘OroPlatform – Installation/Technical Issues or Problems’ is closed to new topics and replies.