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
6a958bae
Commit
6a958bae
authored
Dec 11, 2007
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed #665.
parent
532dea0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
Manager.php
lib/Doctrine/Manager.php
+11
-0
Query.php
lib/Doctrine/Query.php
+8
-3
No files found.
lib/Doctrine/Manager.php
View file @
6a958bae
...
...
@@ -545,6 +545,17 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera
}
return
$this
->
getCurrentConnection
();
}
/**
* hasConnectionForComponent
*
* @param string $componentName
* @return boolean
*/
public
function
hasConnectionForComponent
(
$componentName
=
null
)
{
return
isset
(
$this
->
_bound
[
$componentName
]);
}
/**
* getTable
...
...
lib/Doctrine/Query.php
View file @
6a958bae
...
...
@@ -1649,8 +1649,10 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable, Seria
public
function
loadRoot
(
$name
,
$componentAlias
)
{
// get the connection for the component
$this
->
_conn
=
Doctrine_Manager
::
getInstance
()
->
getConnectionForComponent
(
$name
);
$manager
=
Doctrine_Manager
::
getInstance
();
if
(
$manager
->
hasConnectionForComponent
(
$name
))
{
$this
->
_conn
=
$manager
->
getConnectionForComponent
(
$name
);
}
$table
=
$this
->
_conn
->
getTable
(
$name
);
$tableName
=
$table
->
getTableName
();
...
...
@@ -1681,7 +1683,10 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable, Seria
public
function
buildInheritanceJoinSql
(
$name
,
$componentAlias
)
{
// get the connection for the component
$this
->
_conn
=
Doctrine_Manager
::
getInstance
()
->
getConnectionForComponent
(
$name
);
$manager
=
Doctrine_Manager
::
getInstance
();
if
(
$manager
->
hasConnectionForComponent
(
$name
))
{
$this
->
_conn
=
$manager
->
getConnectionForComponent
(
$name
);
}
$table
=
$this
->
_conn
->
getTable
(
$name
);
$tableName
=
$table
->
getTableName
();
...
...
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