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
efea8acc
Commit
efea8acc
authored
Jun 25, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
83128e79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
Xml.php
lib/Doctrine/Import/Xml.php
+4
-6
No files found.
lib/Doctrine/Import/Xml.php
View file @
efea8acc
...
...
@@ -46,14 +46,13 @@ class Doctrine_Import_Xml
* @param string $schema The file containing the XML schema
* @param string $directory The directory where the Doctrine_Record classes will
* be written
* @static
*/
public
function
importObj
(
$schema
,
$directory
)
{
$
B
uilder
=
new
Doctrine_Import_Builder
();
$
B
uilder
->
setTargetPath
(
$directory
);
$
b
uilder
=
new
Doctrine_Import_Builder
();
$
b
uilder
->
setTargetPath
(
$directory
);
$
A
rr
=
self
::
importArr
(
$schema
);
$
a
rr
=
self
::
importArr
(
$schema
);
foreach
(
$arr
as
$name
=>
$columns
)
{
$Builder
->
buildRecord
(
$name
,
$columns
);
...
...
@@ -68,9 +67,8 @@ class Doctrine_Import_Xml
*
* @param string $schema Path to the file containing the XML schema
* @return array
* @static
*/
public
static
function
importArr
(
$schema
)
public
function
importArr
(
$schema
)
{
if
(
!
is_readable
(
$schema
))
{
throw
new
Doctrine_Import_Exception
(
'Could not read schema file '
.
$schema
);
...
...
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