1 | <?php |
||
13 | class Schema extends BaseSchema |
||
14 | { |
||
15 | /** |
||
16 | * Used table class, define TABLE_CLASS constant in an extended class to extend the table class |
||
17 | * Important: your class must extend RDV\Bundle\MigrationBundle\Migration\Schema\Table class |
||
18 | * or extend Doctrine\DBAL\Schema\Table class and must have __construct(array $args) method |
||
19 | */ |
||
20 | const TABLE_CLASS = 'Doctrine\DBAL\Schema\Table'; |
||
21 | |||
22 | /** |
||
23 | * Creates an instance of TABLE_CLASS class |
||
24 | * |
||
25 | * @param array $args An arguments for TABLE_CLASS class constructor |
||
26 | * An instance of a base table is in 'table' element |
||
27 | * @return BaseTable |
||
28 | */ |
||
29 | protected function createTableObject(array $args) |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function createTable($tableName) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | // @codingStandardsIgnoreStart |
||
50 | protected function _addTable(BaseTable $table) |
||
57 | // @codingStandardsIgnoreEnd |
||
58 | } |
||
59 |