We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TreeBehaviorのrecoverかreorderでいけそうだけどゴミ箱などの考慮は必要
https://book.cakephp.org/2/ja/core-libraries/behaviors/tree.html https://book.cakephp.org/5/ja/orm/behaviors/tree.html
ツリー構造やリンクされたリストのように、自分自身を参照する複雑なデータ構造は、 その性質上、まれに不用意なコールによって壊れてしまいます。気落ちしないでください。 全てが失われたわけではありません!これまでの文書中には登場していませんが、Tree ビヘイビアはこういった状況に対処するための関数をいくつか持っています。
既存の処理
https://github.com/baserproject/basercms/blob/dev-4/lib/Baser/Model/Content.php https://github.com/baserproject/basercms/blob/5.1.x/plugins/baser-core/src/Model/Table/ContentsTable.php resetTree
The text was updated successfully, but these errors were encountered:
@seto1 Cake2系の時にrecoverかreorderでうまくいかない場合があって、仕方なく今の処理になった経緯があります。 Cake5系では試せてないです。一度確認してもらえますか??
Sorry, something went wrong.
No branches or pull requests
TreeBehaviorのrecoverかreorderでいけそうだけどゴミ箱などの考慮は必要
https://book.cakephp.org/2/ja/core-libraries/behaviors/tree.html
https://book.cakephp.org/5/ja/orm/behaviors/tree.html
既存の処理
https://github.com/baserproject/basercms/blob/dev-4/lib/Baser/Model/Content.php
https://github.com/baserproject/basercms/blob/5.1.x/plugins/baser-core/src/Model/Table/ContentsTable.php
resetTree
The text was updated successfully, but these errors were encountered: