Skip to content

Instantly share code, notes, and snippets.

@chanmix51
Created April 4, 2011 21:52
Show Gist options
  • Save chanmix51/902530 to your computer and use it in GitHub Desktop.
Save chanmix51/902530 to your computer and use it in GitHub Desktop.
Few lines of PHP to scan a ph schema to create model files with Silex
<?php
require __DIR__.'/vendor/pomm/test/autoload.php';
$service = new Pomm\Service(array('default' => array('dsn' => 'pgsql://nss_user:nss_password@localhost/nss_db')));
$scan = new Pomm\Tools\ScanSchemaTool(array(
'dir'=> __DIR__,
'schema' => 'transfo',
'connection' => $service->getDatabase(),
));
$scan->execute();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment