platform icon indicating copy to clipboard operation
platform copied to clipboard

WorflowEntityValidator allow object

Open vytsci opened this issue 6 years ago • 2 comments

If entity contains some object rather than entity and it goes to validator it throws not manageable error. We have lots of DataTypes in our code. This is just an unnecessary restriction.

vytsci avatar Sep 23 '19 15:09 vytsci

@vytsci Workflow engine in OroPlatform is built for transitioning entities through different steps of a workflow, and the entity restrictions are also for entities - https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/WorkflowBundle/Resources/doc/reference/workflow/configuration-reference.md#entity-restrictions-configuration

Why would there ever be a non-entity object?

mbessolov avatar Sep 23 '19 21:09 mbessolov

Issue is that we have status as an object, but it can be managed as a string, and ORO thinks that if you have property and it is an object it must be an entity and it should not be like that. I understand that relations must be entities, but for example DateTime is also an object and if you add that to this equation it will also throw non configurable entity error.

vytsci avatar Feb 16 '20 11:02 vytsci