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
4d5745c7
Commit
4d5745c7
authored
Jun 26, 2007
by
nicobn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added two parameters so a different file name / class name can be specified.
parent
73b9f36e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
Builder.php
lib/Doctrine/Import/Builder.php
+10
-3
No files found.
lib/Doctrine/Import/Builder.php
View file @
4d5745c7
...
...
@@ -79,7 +79,7 @@ class Doctrine_Import_Builder
return
$this
->
path
;
}
public
function
buildRecord
(
$table
,
$tableColumns
)
public
function
buildRecord
(
$table
,
$tableColumns
,
$className
=
''
,
$fileName
=
''
)
{
if
(
empty
(
$this
->
path
))
{
throw
new
Doctrine_Import_Builder_Exception
(
'No build target directory set.'
);
...
...
@@ -88,8 +88,15 @@ class Doctrine_Import_Builder
throw
new
Doctrine_Import_Builder_Exception
(
'Build target directory '
.
$this
->
path
.
' is not writable.'
);
}
$created
=
date
(
'l dS \of F Y h:i:s A'
);
$className
=
Doctrine
::
classify
(
$table
);
$fileName
=
$this
->
path
.
DIRECTORY_SEPARATOR
.
$className
.
$this
->
suffix
;
if
(
empty
(
$className
))
{
$className
=
Doctrine
::
classify
(
$table
);
}
if
(
empty
(
$fileName
))
{
$fileName
=
$this
->
path
.
DIRECTORY_SEPARATOR
.
$className
.
$this
->
suffix
;
}
$columns
=
array
();
$i
=
0
;
...
...
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