| 584 | | $c = new Criteria(); |
|---|
| 585 | | $c->addAnd(self::getColumnConstant(get_class($node), 'parent'), $node->getPrimaryKey(), Criteria::EQUAL); |
|---|
| 586 | | $c->addAnd(self::getColumnConstant(get_class($node), 'scope'), $node->getScopeIdValue(), Criteria::EQUAL); |
|---|
| 587 | | $c->addAscendingOrderByColumn(self::getColumnConstant(get_class($node), 'left')); |
|---|
| 588 | | |
|---|
| 589 | | $children = call_user_func(array(get_class($node->getPeer()), $peer_method), $c); |
|---|
| | 584 | if(is_null($criteria)) |
|---|
| | 585 | { |
|---|
| | 586 | $critcopy = new Criteria(); |
|---|
| | 587 | } |
|---|
| | 588 | else |
|---|
| | 589 | { |
|---|
| | 590 | $critcopy = clone $criteria; |
|---|
| | 591 | } |
|---|
| | 592 | $critcopy->addAnd(self::getColumnConstant(get_class($node), 'parent'), $node->getPrimaryKey(), Criteria::EQUAL); |
|---|
| | 593 | $critcopy->addAnd(self::getColumnConstant(get_class($node), 'scope'), $node->getScopeIdValue(), Criteria::EQUAL); |
|---|
| | 594 | |
|---|
| | 595 | if($critcopy->getOrderByColumns() == array()) |
|---|
| | 596 | { |
|---|
| | 597 | $critcopy->addAscendingOrderByColumn(self::getColumnConstant(get_class($node), 'left')); |
|---|
| | 598 | } |
|---|
| | 599 | |
|---|
| | 600 | $children = call_user_func(array(get_class($node->getPeer()), $peer_method), $critcopy, $con); |
|---|
| 620 | | $c = new Criteria(); |
|---|
| 621 | | $c->addAnd(self::getColumnConstant(get_class($node), 'left'), $node->getLeftValue(), Criteria::GREATER_THAN); |
|---|
| 622 | | $c->addAnd(self::getColumnConstant(get_class($node), 'right'), $node->getRightValue(), Criteria::LESS_THAN); |
|---|
| 623 | | $c->addAnd(self::getColumnConstant(get_class($node), 'scope'), $node->getScopeIdValue(), Criteria::EQUAL); |
|---|
| 624 | | $c->addAscendingOrderByColumn(self::getColumnConstant(get_class($node), 'left')); |
|---|
| | 631 | if(is_null($criteria)) |
|---|
| | 632 | { |
|---|
| | 633 | $critcopy = new Criteria(); |
|---|
| | 634 | } |
|---|
| | 635 | else |
|---|
| | 636 | { |
|---|
| | 637 | $critcopy = clone $criteria; |
|---|
| | 638 | } |
|---|
| | 639 | $critcopy->addAnd(self::getColumnConstant(get_class($node), 'left'), $node->getLeftValue(), Criteria::GREATER_THAN); |
|---|
| | 640 | $critcopy->addAnd(self::getColumnConstant(get_class($node), 'right'), $node->getRightValue(), Criteria::LESS_THAN); |
|---|
| | 641 | $critcopy->addAnd(self::getColumnConstant(get_class($node), 'scope'), $node->getScopeIdValue(), Criteria::EQUAL); |
|---|
| | 642 | |
|---|
| | 643 | if($critcopy->getOrderByColumns() == array()) |
|---|
| | 644 | { |
|---|
| | 645 | $critcopy->addAscendingOrderByColumn(self::getColumnConstant(get_class($node), 'left')); |
|---|
| | 646 | } |
|---|