You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.
This is more of a support query. Once I've fully understood this bundle, I would love to contribute with a pull request to the README file.
The line $processHandler->start($model); from your Usage example needs to be called once an entity is persisted for the first time. I hence thought I'd use an entity listener or lifecycle subscriber to handle it, but am getting a circular reference. Alternatively, I could implement checks in my form handler to call the method when the entity is first persisted.
What do you guys do in your projects – where do you call it?
The text was updated successfully, but these errors were encountered:
thrownewWorkflowException(sprintf('The given model has already started the "%s" process.', $this->process->getName()));
}
In my experience, I use it with listener and I don't like it. Then, I used it in the controller it's more simple but too easy. Or, if you use a form handler or Command Bus, you can start the process from there, and
begin transaction > try/catch > flush in your controller.
why begin transaction? When you start process, we saved a modelState
This is more of a support query. Once I've fully understood this bundle, I would love to contribute with a pull request to the README file.
The line
$processHandler->start($model);
from your Usage example needs to be called once an entity is persisted for the first time. I hence thought I'd use an entity listener or lifecycle subscriber to handle it, but am getting a circular reference. Alternatively, I could implement checks in my form handler to call the method when the entity is first persisted.What do you guys do in your projects – where do you call it?
The text was updated successfully, but these errors were encountered: