Programming Language PHP

Namespace Oro\Bundle\WorkflowBundle\Model

Class Workflow

Method/Function setDefinition

Total Examples 1

1 code examples of PHP Oro\Bundle\WorkflowBundle\Model\Workflow::setDefinition extracted from open source projects

Was this example useful?
0
                                                    /**
     * Ensure that all database entities in workflow are still in Doctrine Unit of Work
     *
     * @throws WorkflowNotFoundException
     */
    protected function refreshWorkflow(Workflow $workflow): Workflow
    {
        $refreshedDefinition = $this->refreshWorkflowDefinition($workflow->getDefinition());
        $workflow->setDefinition($refreshedDefinition);

        return $workflow;
    }
                                            
Workflow's Other Methods