Skip to content

Instantly share code, notes, and snippets.

Ignat Shcheglovskyi ignat-s

View GitHub Profile
@ignat-s
ignat-s / TransitWorkflow.php
Last active Dec 11, 2015
Example how to make transition of workflow using processes in Oro
View TransitWorkflow.php
<?php
namespace ACME\Bundle\DemoBundle\Model\Action;
use Oro\Bundle\WorkflowBundle\Exception\ActionException;
use Oro\Bundle\WorkflowBundle\Exception\InvalidParameterException;
use Oro\Bundle\WorkflowBundle\Model\Action\AbstractAction;
use Oro\Bundle\WorkflowBundle\Model\ContextAccessor;
use Oro\Bundle\WorkflowBundle\Model\WorkflowManager;
View AbstractAddress.php
<?php
namespace Oro\Bundle\AddressBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap;
use Symfony\Component\Validator\ExecutionContext;
You can’t perform that action at this time.