lexik / LexikWorkflowBundle

Simple workflow bundle for Symfony2
MIT License
126 stars 29 forks source link

about app/config/config.yml #35

Open eatornquist opened 7 years ago

eatornquist commented 7 years ago

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!!!

ruddhani commented 7 years ago

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 commented 7 years ago

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.