Skip to content

Commit b7f0dd3

Browse files
committed
Fix up API doc example.
replaceLinks() is not a method on this class.
1 parent e6e3ca7 commit b7f0dd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ORM/Association/HasMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ function ($assoc) use ($targetEntities) {
352352
* $author->articles = [$article1, $article2, $article3, $article4];
353353
* $authors->save($author);
354354
* $articles = [$article1, $article3];
355-
* $authors->association('articles')->replaceLinks($author, $articles);
355+
* $authors->association('articles')->replace($author, $articles);
356356
* ```
357357
*
358358
* `$author->get('articles')` will contain only `[$article1, $article3]` at the end

0 commit comments

Comments
 (0)