Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
3b0f749a
Commit
3b0f749a
authored
Oct 05, 2007
by
Jonathan.Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for multiple connection handling.
parent
7bbcb51d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
Import.php
lib/Doctrine/Import.php
+13
-9
No files found.
lib/Doctrine/Import.php
View file @
3b0f749a
...
...
@@ -185,17 +185,21 @@ class Doctrine_Import extends Doctrine_Connection_Module
*/
public
function
importSchema
(
$directory
,
array
$databases
=
array
())
{
$builder
=
new
Doctrine_Import_Builder
();
$builder
->
setTargetPath
(
$directory
);
$connections
=
Doctrine_Manager
::
getInstance
()
->
getConnections
();
foreach
(
$connections
as
$connection
)
{
$builder
=
new
Doctrine_Import_Builder
();
$builder
->
setTargetPath
(
$directory
);
$classes
=
array
();
foreach
(
$this
->
listTables
()
as
$table
)
{
$builder
->
buildRecord
(
array
(
'tableName'
=>
$table
,
'className'
=>
Doctrine
::
classify
(
$table
)),
$this
->
listTableColumns
(
$table
),
array
());
$classes
=
array
();
foreach
(
$connection
->
import
->
listTables
()
as
$table
)
{
$builder
->
buildRecord
(
array
(
'tableName'
=>
$table
,
'className'
=>
Doctrine
::
classify
(
$table
)),
$connection
->
import
->
listTableColumns
(
$table
),
array
());
$classes
[]
=
Doctrine
::
classify
(
$table
);
$classes
[]
=
Doctrine
::
classify
(
$table
);
}
}
return
$classes
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment