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
32c62881
Commit
32c62881
authored
Nov 14, 2007
by
Jonathan.Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #600
parent
43c8eba2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
Parser.php
lib/Doctrine/Parser.php
+9
-9
schema-files.txt
manual/docs/en/schema-files.txt
+2
-2
No files found.
lib/Doctrine/Parser.php
View file @
32c62881
...
...
@@ -67,7 +67,7 @@ abstract class Doctrine_Parser
static
public
function
getParser
(
$type
)
{
$class
=
'Doctrine_Parser_'
.
ucfirst
(
$type
);
return
new
$class
;
}
...
...
@@ -84,7 +84,7 @@ abstract class Doctrine_Parser
static
public
function
load
(
$path
,
$type
=
'xml'
)
{
$parser
=
self
::
getParser
(
$type
);
return
$parser
->
loadData
(
$path
);
}
...
...
@@ -102,7 +102,7 @@ abstract class Doctrine_Parser
static
public
function
dump
(
$array
,
$type
=
'xml'
,
$path
=
null
)
{
$parser
=
self
::
getParser
(
$type
);
return
$parser
->
dumpData
(
$array
,
$path
);
}
...
...
@@ -120,17 +120,17 @@ abstract class Doctrine_Parser
ob_start
();
if
(
!
file_exists
(
$path
))
{
$contents
=
$path
;
$path
=
'/tmp/
dparser_'
.
microtime
();
$path
=
sys_get_temp_dir
()
.
DIRECTORY_SEPARATOR
.
'
dparser_'
.
microtime
();
file_put_contents
(
$path
,
$contents
);
}
include
(
$path
);
$contents
=
ob_get_clean
();
return
$contents
;
}
public
function
doDump
(
$data
,
$path
)
{
if
(
$path
)
{
...
...
@@ -139,4 +139,4 @@ abstract class Doctrine_Parser
return
$data
;
}
}
}
\ No newline at end of file
}
manual/docs/en/schema-files.txt
View file @
32c62881
...
...
@@ -248,7 +248,7 @@ UserProfile:
sorting: ASC
length: 10
primary: true
last_name:
~
last_name:
[]
type: unique
</code>
...
...
@@ -273,4 +273,4 @@ $options = array('packagesPrefix' => 'Package', // What to p
// This code will generate the models for schema.yml at /path/to/generate/models
Doctrine::generateModelsFromYaml('schema.yml', '/path/to/generate/models', $options);
</code>
\ No newline at end of file
</code>
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