LexikWorkflowBundle icon indicating copy to clipboard operation
LexikWorkflowBundle copied to clipboard

about app/config/config.yml

Open eatornquist opened this issue 8 years ago • 2 comments

I have this error: Invalid configuration for path "lexik_workflow.processes.post_publication.steps.draft_created.model_status": You must specify a valid constant name as second parameter

Can somebody help me with this??? thanks!!!

eatornquist avatar Apr 07 '17 03:04 eatornquist

I am having the same issue: model_status: [ setStatus, AppBundle\Entity\Post::STATUS_DRAFT ] My Post entity and PostModel are at proper namespace and used as well.

Can anyone answer this please?

thanks (Y)

ruddhani avatar Jun 13 '17 14:06 ruddhani

I have been able to resolve the same, in your Post entity create const variables:

const STATUS_DRAFT = 'draft';
const STATUS_VALIDATED = 'validated';
...

Hope this will resolve your issue, the error is invalid/non-existing constant name.

ruddhani avatar Jun 14 '17 14:06 ruddhani