lexik / LexikWorkflowBundle

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

The given model has already started the "post_publication" process #25

Open Nekker opened 8 years ago

Nekker commented 8 years ago

hello !

My error comes from my controller ($modelSate =$processHandler->start($model);).

I looked in the processHandler to identify the error but I don't know of or comes this error,

Thank you in advance for your help and I will be happy to resolve the error with you.

maarekj commented 8 years ago

What is the error ? An exception ? An configuration error ... ?

Nekker commented 8 years ago

this is an exception because the controller is taken into account but it has blocked the start function.

that's what we but an error message with the process level.

thank you for your help

bakurin commented 8 years ago

@Nekker check getWorkflowIdentifier method of your model. In case you use the same implementation as in example and pass an entity with id equals to null you will get the duplication of identifier that causes the error.

FMAxGr33Dx commented 8 years ago

@bakurin Thanks for help but this issue is has solved half. How could you do it and she variables to switch between steps is another view in the twig.