Skip to content

Commit b55b943

Browse files
authored
Merge pull request #8330 from albertcansado/include-regions
fix: use include regions instead of line ranges
2 parents bf5f470 + 91c8a07 commit b55b943

9 files changed

Lines changed: 19 additions & 19 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ npm run docs:preview
3737

3838
### Prerequisites
3939

40-
- `node` (version 18 or newer) - JavaScript runtime required by Vite/VitePress
40+
- `node` (version 22 or newer) - JavaScript runtime required by Vite/VitePress
4141
- `npm` - Package manager (included with most Node.js installations)
4242
- `git` - Required to install `@cakephp/docs-skeleton` from GitHub
4343

docs/en/orm/behaviors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ a perfect fit for.
1818

1919
## Using Behaviors
2020

21-
<!--@include: ./table-objects.md{414,460}-->
21+
<!--@include: ./table-objects.md#behaviors-->
2222

2323
## Core Behaviors
2424

docs/en/orm/query-builder.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,11 +1905,11 @@ data, you first need to setup associations between the tables as described in
19051905
the [Associations - Linking Tables Together](../orm/associations) section. This technique of combining queries
19061906
to fetch associated data from other tables is called **eager loading**.
19071907

1908-
<!--@include: ./retrieving-data-and-resultsets.md{507,719}-->
1908+
<!--@include: ./retrieving-data-and-resultsets.md#contain-->
19091909

19101910
### Filtering by Associated Data
19111911

1912-
<!--@include: ./retrieving-data-and-resultsets.md{727,938}-->
1912+
<!--@include: ./retrieving-data-and-resultsets.md#filtering-->
19131913

19141914
### Adding Joins
19151915

docs/en/orm/retrieving-data-and-resultsets.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ By default, CakePHP does not load **any** associated data when using `find()`.
525525
You need to 'contain' or eager-load each association you want loaded in your
526526
results.
527527

528-
<!-- start-contain -->
528+
<!-- #region contain -->
529529

530530
Eager loading helps avoid many of the potential performance problems
531531
surrounding lazy-loading in an ORM. The queries generated by eager loading can
@@ -739,13 +739,13 @@ $query->contain([
739739
]);
740740
```
741741

742-
<!-- end-contain -->
742+
<!-- #endregion contain -->
743743

744744
<a id="filtering-by-associated-data"></a>
745745

746746
## Filtering by Associated Data Via Matching And Joins
747747

748-
<!-- start-filtering -->
748+
<!-- #region filtering -->
749749

750750
A fairly common query case with associations is finding records 'matching'
751751
specific associated data. For example if you have 'Articles belongsToMany Tags'
@@ -958,7 +958,7 @@ $query = $authorsTable
958958
This function will not load any columns from the specified associations into the
959959
result set.
960960
961-
<!-- end-filtering -->
961+
<!-- #endregion filtering -->
962962
963963
## Changing Fetching Strategies
964964

docs/en/orm/table-objects.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ You can manage event priorities in one of a few ways:
443443

444444
`method` Cake\\ORM\\Table::**addBehavior**(string $name, array $options = []): static
445445

446-
<!-- start-behaviors -->
446+
<!-- #region behaviors -->
447447

448448
Behaviors provide a way to create horizontally re-usable pieces of logic
449449
related to table classes. You may be wondering why behaviors are regular classes
@@ -491,7 +491,7 @@ class ArticlesTable extends Table
491491
}
492492
```
493493

494-
<!-- end-behaviors -->
494+
<!-- #endregion behaviors -->
495495

496496
You can find out more about behaviors, including the behaviors provided by
497497
CakePHP in the chapter on [Behaviors](../orm/behaviors).

docs/ja/orm/behaviors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
## ビヘイビアーの利用
1414

15-
<!--@include: ./table-objects.md{401,446}-->
15+
<!--@include: ./table-objects.md#behaviors-->
1616

1717
## コアビヘイビアー
1818

docs/ja/orm/query-builder.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,11 +1258,11 @@ $query->cache(function ($q) {
12581258
あるようにテーブル間の関連をセットアップしてください。他のテーブルから関連するデータを
12591259
フェッチするためにクエリーを合成する技術を **イーガーロード** (eager load) といいます。
12601260

1261-
<!--@include: ./retrieving-data-and-resultsets.md{488,680}-->
1261+
<!--@include: ./retrieving-data-and-resultsets.md#contain-->
12621262

12631263
### 関連付くデータでフィルターする
12641264

1265-
<!--@include: ./retrieving-data-and-resultsets.md{686,858}-->
1265+
<!--@include: ./retrieving-data-and-resultsets.md#filtering-->
12661266

12671267
### Join を追加する
12681268

docs/ja/orm/retrieving-data-and-resultsets.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ CakePHP は `find()` を使う際、デフォルトでは関連データを **
484484
結果の中にロードしたい各関連データは 'contain' で指定するか、イーガーロード (eager load)
485485
する必要があります。
486486

487-
<!-- start-contain -->
487+
<!-- #region contain -->
488488

489489
イーガーロードは、ORM のレイジーロード (lazy load) 周辺に潜むパフォーマンス問題の多くを避けるのに役立ちます。
490490
イーガーロードで生成されたクエリーは JOIN に影響を与えて、効率的なクエリーが作られるようになります。
@@ -678,11 +678,11 @@ $query->contain([
678678
]);
679679
```
680680

681-
<!-- end-contain -->
681+
<!-- #endregion contain -->
682682

683683
### matching と joins を用いた関連データによるフィルタリング
684684

685-
<!-- start-filtering -->
685+
<!-- #region filtering -->
686686

687687
関連データに関するクエリーでよくあるのは、指定の関連データに「マッチする (matching)」レコードを
688688
見つけるものです。たとえば、 'Articles belongsToMany Tags' である場合、かなりの確率で、
@@ -856,7 +856,7 @@ $query = $authorsTable
856856

857857
この関数は指定した関連からいずれのカラムも結果セットへとロードしません。
858858

859-
<!-- end-filtering -->
859+
<!-- #endregion filtering -->
860860

861861
## フェッチの戦略の変更する
862862

docs/ja/orm/table-objects.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ public function beforeSave(EventInterface $event, EntityInterface $entity, Array
397397

398398
`method` Cake\\ORM\\Table::**addBehavior**($name, array $options = [])
399399

400-
<!-- start-behaviors -->
400+
<!-- #region behaviors -->
401401

402402
ビヘイビアーは、テーブルクラスにまたがって関連するロジックの再利用可能な部品を作成する
403403
簡単な方法を提供します。なぜビヘイビアーが通常のクラスで、トレイトではないのか
@@ -444,7 +444,7 @@ class ArticlesTable extends Table
444444
}
445445
```
446446

447-
<!-- end-behaviors -->
447+
<!-- #endregion behaviors -->
448448

449449
CakePHP によって提供されるビヘイビアーを含む、ビヘイビアーに関する詳細は [ビヘイビアー](../orm/behaviors)
450450
の章をご覧ください。

0 commit comments

Comments
 (0)