Example #1
0
 protected function _addTable(BaseTable $table)
 {
     if (get_class($table) !== static::TABLE_CLASS && static::TABLE_CLASS !== 'Doctrine\\DBAL\\Schema\\Table') {
         $table = $this->createTableObject(['table' => $table]);
     }
     parent::_addTable($table);
 }
 /**
  * Merges Jackalope schema with the given schema.
  *
  * @param Schema $schema
  */
 public function addToSchema(Schema $schema)
 {
     foreach ($this->getTables() as $table) {
         $schema->_addTable($table);
     }
     foreach ($this->getSequences() as $sequence) {
         $schema->_addSequence($sequence);
     }
 }