Skip to content

Commit c9d2ec5

Browse files
Sync documentation updates from cakephp-docs-md
🤖 Generated with GitHub Actions from 2025-10-17 02:34:18 UTC Co-Authored-By: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent c4e1dde commit c9d2ec5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/5.x/orm/behaviors/tree.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ You can configure the name of those fields should you need to customize them.
2727
More information on the meaning of the fields and how they are used can be found
2828
in this article describing the [MPTT logic](https://www.sitepoint.com/hierarchical-data-database-2/)
2929

30+
> [!WARNING]
31+
> The TreeBehavior is not safe for concurrent write operations.
32+
> Simultaneous requests that modify tree-structured data
33+
> (e.g., insertions, deletions, or moves) can lead to corruption of the
34+
> `lft` and `rght` values.
35+
>
36+
> To prevent this, a locking mechanism like a
37+
> [Semaphore](https://www.php.net/manual/en/book.sem.php) should be used.
38+
3039
> [!WARNING]
3140
> The TreeBehavior does not support composite primary keys at this point in
3241
> time.

0 commit comments

Comments
 (0)