Skip to content

Commit

Permalink
Merge pull request #11493 from SamMousa/fix-docs-11492
Browse files Browse the repository at this point in the history
fix(docs): use string value in `addAttribute`
  • Loading branch information
greg0ire authored Jun 11, 2024
2 parents 59c8bc0 + 87a8ee2 commit bdc9679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/tutorials/composite-primary-keys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ We keep up the example of an Article with arbitrary attributes, the mapping look
#[OneToMany(targetEntity: ArticleAttribute::class, mappedBy: 'article', cascade: ['ALL'], indexBy: 'attribute')]
private Collection $attributes;
public function addAttribute(string $name, ArticleAttribute $value): void
public function addAttribute(string $name, string $value): void
{
$this->attributes[$name] = new ArticleAttribute($name, $value, $this);
}
Expand Down

0 comments on commit bdc9679

Please sign in to comment.