Skip to content

Commit

Permalink
#220 Collection->getChildren() now only returns the direct children o…
Browse files Browse the repository at this point in the history
…f a given object
  • Loading branch information
extracts committed Feb 24, 2022
1 parent 165cadb commit 0240557
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/Opus/Model2/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,7 @@ public function getChildren()
{
// TODO DOCTRINE The $this->children property is currently unused but needed for ORM to specify the relationship

// TODO DOCTRINE Is the $direct param (flag indicating whether only direct children should be retrieved) correct?
$children = self::getRepository()->children($this, false, 'left');
$children = self::getRepository()->children($this, true, 'left');

return $children ?: [];
}
Expand Down

0 comments on commit 0240557

Please sign in to comment.