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
2d7f7691
Commit
2d7f7691
authored
May 20, 2010
by
Jonathan H. Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DDC-603] Fixing issue with reverse engineering a database where table names are all caps
parent
79d3f655
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
DatabaseDriver.php
lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php
+4
-2
No files found.
lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php
View file @
2d7f7691
...
...
@@ -60,7 +60,7 @@ class DatabaseDriver implements Driver
public
function
loadMetadataForClass
(
$className
,
ClassMetadataInfo
$metadata
)
{
$tableName
=
$className
;
$className
=
Inflector
::
classify
(
$tableName
);
$className
=
Inflector
::
classify
(
strtolower
(
$tableName
)
);
$metadata
->
name
=
$className
;
$metadata
->
table
[
'name'
]
=
$tableName
;
...
...
@@ -153,7 +153,9 @@ class DatabaseDriver implements Driver
$classes
=
array
();
foreach
(
$this
->
_sm
->
listTables
()
as
$table
)
{
$classes
[]
=
$table
->
getName
();
// TODO: Why is this not correct? Inflector::classify($table->getName());
// This method must return an array of table names because we need
// to know the table name after we inflect it to create the entity class name.
$classes
[]
=
$table
->
getName
();
}
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