Initial entry.
This commit is contained in:
parent
d857bfaf70
commit
919ec7141c
4
playground/connection.php
Normal file
4
playground/connection.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
$dbh = new PDO('sqlite::memory:');
|
||||
$conn = Doctrine_Manager::connection($dbh);
|
||||
$manager = Doctrine_Manager::getInstance();
|
26
playground/models.php
Normal file
26
playground/models.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
Doctrine::loadModels('models');
|
||||
|
||||
$manager->setAttribute(Doctrine::ATTR_EXPORT, Doctrine::EXPORT_ALL);
|
||||
|
||||
$tables = array('entity',
|
||||
'entityReference',
|
||||
'email',
|
||||
'phonenumber',
|
||||
'groupuser',
|
||||
'album',
|
||||
'song',
|
||||
'element',
|
||||
'error',
|
||||
'description',
|
||||
'address',
|
||||
'account',
|
||||
'task',
|
||||
'resource',
|
||||
'assignment',
|
||||
'resourceType',
|
||||
'resourceReference');
|
||||
|
||||
$conn->export->exportClasses($tables);
|
||||
|
||||
require_once('data.php');
|
Loading…
Reference in New Issue
Block a user