Skip to content

Commit

Permalink
Merge pull request #34 from maximehuran/feature/update-readme
Browse files Browse the repository at this point in the history
Update README with PHP 8 attribute syntax
  • Loading branch information
maximehuran authored Mar 13, 2024
2 parents ebf5df7 + d517042 commit 9828179
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ Add some annotations to your `src/Entity/Channel/Channel.php` entity to prevent
+ * )
+ * })
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_channel')]
+ #[ORM\AssociationOverrides([
+ new ORM\AssociationOverride(
+ name: 'baseCurrency',
+ joinColumns: new ORM\JoinColumn(name: 'base_currency_id', referencedColumnName: 'id', nullable: true)
+ )]
+ )]
class Channel extends BaseChannel
```

Expand Down

0 comments on commit 9828179

Please sign in to comment.