public function copyToTargetCategory(StackCategory $category) { $list = new StackList(); $list->filterByStackCategory($this); $stacks = $list->get(); foreach ($stacks as $stack) { $stack->duplicate($category->getPage()); } }
public function filterByStackCategory(StackCategory $category) { $this->filterByParentID($category->getPage()->getCollectionID()); }