PHP Class Doctrine\DBAL\Migrations\Tools\Console\Command\DiffCommand

Since: 2.0
Author: Jonathan Wage ([email protected])
Inheritance: extends GenerateCommand
Mostrar archivo Open project: doctrine/migrations Class Usage Examples

Protected Properties

Property Type Description
$schemaProvider Doctrine\DBAL\Migrations\Provider\SchemaProviderInterface

Public Methods

Method Description
__construct ( Doctrine\DBAL\Migrations\Provider\SchemaProviderInterface $schemaProvider = null )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )

Protected Methods

Method Description
configure ( )

Private Methods

Method Description
buildCodeFromSql ( Configuration $configuration, array $sql, $formatted = false, $lineLength = 120 )
getSchemaProvider ( )
resolveTableName ( string $name ) : string Resolve a table name from its fully qualified name. The $name argument comes from Doctrine\DBAL\Schema\Table#getName which can sometimes return a namespaced name with the form {namespace}.{tableName}. This extracts the table name from that.

Method Details

__construct() public method

public __construct ( Doctrine\DBAL\Migrations\Provider\SchemaProviderInterface $schemaProvider = null )
$schemaProvider Doctrine\DBAL\Migrations\Provider\SchemaProviderInterface

configure() protected method

protected configure ( )

execute() public method

public execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

Property Details

$schemaProvider protected_oe property

protected SchemaProviderInterface,Doctrine\DBAL\Migrations\Provider $schemaProvider
return Doctrine\DBAL\Migrations\Provider\SchemaProviderInterface