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
e006ebb0
Commit
e006ebb0
authored
Feb 10, 2007
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing multiple root support to Doctrine_Node_NestedSet::getAncestors().
parent
ec6fc688
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
NestedSet.php
lib/Doctrine/Node/NestedSet.php
+5
-4
No files found.
lib/Doctrine/Node/NestedSet.php
View file @
e006ebb0
...
...
@@ -209,10 +209,11 @@ class Doctrine_Node_NestedSet extends Doctrine_Node implements Doctrine_Node_Int
$q
=
$this
->
record
->
getTable
()
->
createQuery
();
$componentName
=
$this
->
record
->
getTable
()
->
getComponentName
();
$ancestors
=
$q
->
where
(
"
$componentName
.lft < ? AND
$componentName
.rgt > ?"
,
array
(
$this
->
getLeftValue
(),
$this
->
getRightValue
()))
->
orderBy
(
"
$componentName
.lft asc"
)
->
execute
();
$q
=
$q
->
where
(
"
$componentName
.lft < ? AND
$componentName
.rgt > ?"
,
array
(
$this
->
getLeftValue
(),
$this
->
getRightValue
()))
->
orderBy
(
"
$componentName
.lft asc"
);
$q
=
$this
->
record
->
getTable
()
->
getTree
()
->
returnQueryWithRootId
(
$q
,
$this
->
getRootValue
());
$ancestors
=
$q
->
execute
();
return
$ancestors
;
}
...
...
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