Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 387b159

Browse files
authored
Merge pull request cakephp#18677 from cakephp/update-table-get-docs
Fix API doc example
2 parents 57c8ab5 + 87778da commit 387b159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ORM/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ protected function _setFieldMatchers(array $options, array $keys): array
14861486
* Get an article and some relationships:
14871487
*
14881488
* ```
1489-
* $article = $articles->get(1, ['contain' => ['Users', 'Comments']]);
1489+
* $article = $articles->get(1, contain: ['Users', 'Comments']]);
14901490
* ```
14911491
*
14921492
* @param mixed $primaryKey primary key value to find

0 commit comments

Comments
 (0)