Skip to content

Commit

Permalink
fix(docs): use string value in addAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Jun 11, 2024
1 parent 59c8bc0 commit 87a8ee2
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 87a8ee2

Please sign in to comment.