The simpler solution that you have (I think) is to create your own team, make your logic inside and call doctrine:schema:updatein the end.
, UpdateSchemaDoctrineCommand Process .
, .
src/Acme/AppBundle/Command/CustomUpdateSchemaDoctrineCommand.php
(, )
:
<?php
namespace Acme\AppBundle\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Doctrine\Bundle\DoctrineBundle\Command\Proxy\UpdateSchemaDoctrineCommand;
class CustomUpdateSchemaDoctrineCommand extends UpdateSchemaDoctrineCommand
{
protected function configure()
{
parent::configure();
$this->setName('custom:schema:update')
}
protected function execute(InputInterface $input, OutputInterface $output)
{
return parent::execute($input, $output);
}
}
, SQL-, DoctrineMigrationsBundle