createWithDataSource() public static method

public static createWithDataSource ( $dsId )
 public function updateLastMigrationId($dsId, $id)
 {
     $metadata = Metadata::createWithDataSource($dsId);
     $lastId = $metadata['migration'];
     $metadata['migration'] = $id;
     $this->logger->info("Updating migration version to {$id}.");
 }
Beispiel #2
0
 public function testCollection()
 {
     $metadata = Metadata::createWithDataSource('default');
     $metadata->init();
     $metadata['version'] = 1;
     $metadata['name'] = 'c9s';
     $metas = new LazyRecord\Model\MetadataCollection();
     foreach ($metas as $meta) {
         ok($meta);
     }
 }