Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function resume(array $data)
 {
     if (isset($data['count'])) {
         $this->count = $data['count'];
     }
     if (isset($data['tables'])) {
         $this->tables = $data['tables'];
     } else {
         $this->tables = $this->schema->getTables();
     }
 }
Beispiel #2
0
 /**
  * {@inheritdoc}
  */
 public function setSchema(DatabaseSchema $schema)
 {
     $this->schema = $schema;
     foreach ($schema->getTables() as $table) {
         $tableSchema = $schema->getSchema($table);
         if (!in_array($table, $this->tableNames)) {
             $this->tableNames[] = $table;
             $this->tables[$table] = $this->getTable($table);
         }
         $this->{$table}->setSchema($tableSchema);
     }
 }