Skip to content

Instantly share code, notes, and snippets.

View ignat-s's full-sized avatar

Ignat Shcheglovskyi ignat-s

View GitHub Profile
<?php
namespace Oro\Bundle\AddressBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap;
use Symfony\Component\Validator\ExecutionContext;
@ignat-s
ignat-s / TransitWorkflow.php
Last active December 11, 2015 09:06
Example how to make transition of workflow using processes in Oro
<?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;
<?php
/**
* This script allows restoring DB from text dump created via pg_dump with excluding of data of specified tables.
*
* Sample command that can help you to restore some dump ignoring these 3 tables that:
* <code>
* gunzip -c orodb.sql.gz \
* | php filter_pg_dump.php \
* --exclude-table-data oro_email_attachment_content \