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
7407fefe
Commit
7407fefe
authored
May 24, 2008
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for new tests.
parent
21e0bd3d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
9 deletions
+7
-9
Factory.php
lib/Doctrine/ClassMetadata/Factory.php
+1
-1
Formatter.php
lib/Doctrine/Formatter.php
+4
-2
VariableDeclaration.php
lib/Doctrine/Query/Production/VariableDeclaration.php
+2
-6
No files found.
lib/Doctrine/ClassMetadata/Factory.php
View file @
7407fefe
...
@@ -57,7 +57,7 @@ class Doctrine_ClassMetadata_Factory
...
@@ -57,7 +57,7 @@ class Doctrine_ClassMetadata_Factory
* @return Doctrine_Metadata
* @return Doctrine_Metadata
*/
*/
public
function
getMetadataFor
(
$className
)
public
function
getMetadataFor
(
$className
)
{
{
if
(
isset
(
$this
->
_loadedMetadata
[
$className
]))
{
if
(
isset
(
$this
->
_loadedMetadata
[
$className
]))
{
return
$this
->
_loadedMetadata
[
$className
];
return
$this
->
_loadedMetadata
[
$className
];
}
}
...
...
lib/Doctrine/Formatter.php
View file @
7407fefe
...
@@ -236,8 +236,10 @@ class Doctrine_Formatter extends Doctrine_Connection_Module
...
@@ -236,8 +236,10 @@ class Doctrine_Formatter extends Doctrine_Connection_Module
* @return string formatted table name
* @return string formatted table name
*/
*/
public
function
getTableName
(
$table
)
public
function
getTableName
(
$table
)
{
{
return
$table
;
/*
return sprintf($this->conn->getAttribute(Doctrine::ATTR_TBLNAME_FORMAT),
return sprintf($this->conn->getAttribute(Doctrine::ATTR_TBLNAME_FORMAT),
$table
);
$table);
*/
}
}
}
}
lib/Doctrine/Query/Production/VariableDeclaration.php
View file @
7407fefe
...
@@ -125,12 +125,8 @@ class Doctrine_Query_Production_VariableDeclaration extends Doctrine_Query_Produ
...
@@ -125,12 +125,8 @@ class Doctrine_Query_Production_VariableDeclaration extends Doctrine_Query_Produ
$queryComponent
=
$parserResult
->
getQueryComponent
(
$this
->
_componentAlias
);
$queryComponent
=
$parserResult
->
getQueryComponent
(
$this
->
_componentAlias
);
// Retrieving connection
// Retrieving connection
$conn
=
$this
->
_parser
->
getSqlBuilder
()
->
getConnection
();
$manager
=
Doctrine_EntityManager
::
getManager
();
$manager
=
Doctrine_Manager
::
getInstance
();
$conn
=
$manager
->
getConnection
();
if
(
$manager
->
hasConnectionForComponent
(
$this
->
_componentName
))
{
$conn
=
$manager
->
getConnectionForComponent
(
$this
->
_componentName
);
}
echo
"Query Component Table Name: "
.
var_export
(
$queryComponent
[
'metadata'
]
->
getTableName
(),
true
)
.
"
\n
"
;
echo
"Query Component Table Name: "
.
var_export
(
$queryComponent
[
'metadata'
]
->
getTableName
(),
true
)
.
"
\n
"
;
...
...
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