Skip to content

Commit

Permalink
Fix up API doc example.
Browse files Browse the repository at this point in the history
replaceLinks() is not a method on this class.
  • Loading branch information
markstory committed Jul 13, 2016
1 parent e6e3ca7 commit b7f0dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/Association/HasMany.php
Expand Up @@ -352,7 +352,7 @@ function ($assoc) use ($targetEntities) {
* $author->articles = [$article1, $article2, $article3, $article4];
* $authors->save($author);
* $articles = [$article1, $article3];
* $authors->association('articles')->replaceLinks($author, $articles);
* $authors->association('articles')->replace($author, $articles);
* ```
*
* `$author->get('articles')` will contain only `[$article1, $article3]` at the end
Expand Down

0 comments on commit b7f0dd3

Please sign in to comment.