如何使用 Gedmo 的 NestedSet 行为移动树节点
我正在使用 Doctrine 2 和 NestedSet 扩展。 在原则 1 中,您可以使用函数 moveAsPrevSiblingOf
、moveAsNextSiblingOf
和 moveAsLastChildOf
来移动节点。
在嵌套扩展的文档中,仅解释了移动同一父级中的节点。没有提及将一个节点移动到另一个节点。这怎么能做到呢?
是否有原则 1 中的易于使用的功能可用?
i'm using Doctrine 2 and the NestedSet extension.
In Doctrine 1 you had the functions moveAsPrevSiblingOf
, moveAsNextSiblingOf
and moveAsLastChildOf
To move nodes around.
In the documentation of the nested extension only moving a node within the same parent is explained. Move a node to another node is not mention. How can this be done?
Are there easy to use functions as found in Doctrine 1 available?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
文档中提供了有关如何移动节点的示例。
In the documentation there are examples on how to move the nodes.