Permalink
Browse files

Rewritten NestedSetBehavior in twig

  • Loading branch information...
mpscholten committed Nov 5, 2013
1 parent e3381db commit 65f3fcd102e805064d9d00e3a77c4de15670e460
Showing with 986 additions and 1,360 deletions.
  1. +0 −9 src/Propel/Generator/Behavior/NestedSet/NestedSetBehavior.php
  2. +0 −1,337 src/Propel/Generator/Behavior/NestedSet/NestedSetBehaviorObjectBuilderModifier.php
  3. +39 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_attributes.php.twig
  4. +4 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_hooks/_postDelete.php.twig
  5. +7 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_hooks/_preDelete.php.twig
  6. +21 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_hooks/_preSave.php.twig
  7. +72 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods.php.twig
  8. +18 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_addChild.php.twig
  9. +21 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_countChildren.php.twig
  10. +18 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_countDescendants.php.twig
  11. +43 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_deleteDescendants.php.twig
  12. +20 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_getAncestors.php.twig
  13. +14 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_getBranch.php.twig
  14. +27 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_getChildren.php.twig
  15. +18 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_getDescendants.php.twig
  16. +18 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_getFirstChild.php.twig
  17. +0 −1 ...ator/Behavior/NestedSet/templates/{objectGetIterator.php → Object/_methods/_getIterator.php.twig}
  18. +18 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_getLastChild.php.twig
  19. +10 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_getLeft.php.twig
  20. +10 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_getLevel.php.twig
  21. +15 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_getNextSibling.php.twig
  22. +18 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_getParent.php.twig
  23. +15 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_getPrevSibling.php.twig
  24. +10 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_getRight.php.twig
  25. +10 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_getScope.php.twig
  26. +24 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_getSiblings.php.twig
  27. +9 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_hasChildren,.php.twig
  28. +19 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_hasNextSibling.php.twig
  29. +9 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_hasParent.php.twig
  30. +20 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_hasPrevSibling.php.twig
  31. +34 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_insertAsFirstChildOf.php.twig
  32. +9 −10 ...stedSet/templates/{objectInsertAsLastChildOf.php → Object/_methods/_insertAsLastChildOf.php.twig}
  33. +31 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_insertAsNextSiblingOf.php.twig
  34. +31 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_insertAsPrevSiblingOf.php.twig
  35. +10 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_isAncestorOf.php.twig
  36. +17 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_isDescendantOf.php.twig
  37. +9 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_isInTree.php.twig
  38. +9 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_isLeaf.php.twig
  39. +9 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_isRoot.php.twig
  40. +18 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_makeRoot.php.twig
  41. +82 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_moveSubtreeTo.php.twig
  42. +23 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_moveToFirstChildOf.php.twig
  43. +23 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_moveToLastChildOf.php.twig
  44. +26 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_moveToNextSiblingOf.php.twig
  45. +26 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_moveToPrevSiblingOf.php.twig
  46. +20 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_nestedSetChildAdd.php.twig
  47. +12 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_nestedSetChildrenClear.php.twig
  48. +10 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_nestedSetChildrenInit.php.twig
  49. +11 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_processNestedSetQueries.php.twig
  50. +2 −3 ...el/Generator/Behavior/NestedSet/templates/{objectSetLeft.php → Object/_methods/_setLeft.php.twig}
  51. +11 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_setLevel.php.twig
  52. +14 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_setParent.php.twig
  53. +11 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_setRight.php.twig
  54. +11 −0 src/Propel/Generator/Behavior/NestedSet/templates/Object/_methods/_setScope.php.twig
@@ -69,15 +69,6 @@ public function modifyTable()
}
}
- public function getObjectBuilderModifier()
- {
- if (null === $this->objectBuilderModifier) {
- $this->objectBuilderModifier = new NestedSetBehaviorObjectBuilderModifier($this);
- }
-
- return $this->objectBuilderModifier;
- }
-
public function getQueryBuilderModifier()
{
if (null === $this->queryBuilderModifier) {
Oops, something went wrong.

0 comments on commit 65f3fcd

Please sign in to comment.