Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

about app/config/config.yml #35

Open
eatornquist opened this issue Apr 7, 2017 · 2 comments
Open

about app/config/config.yml #35

eatornquist opened this issue Apr 7, 2017 · 2 comments

Comments

@eatornquist
Copy link

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
Copy link

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
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants