Skip to content

Commit 9828179

Browse files
authored
Merge pull request #34 from maximehuran/feature/update-readme
Update README with PHP 8 attribute syntax
2 parents ebf5df7 + d517042 commit 9828179

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ Add some annotations to your `src/Entity/Channel/Channel.php` entity to prevent
5353
+ * )
5454
+ * })
5555
*/
56+
#[ORM\Entity]
57+
#[ORM\Table(name: 'sylius_channel')]
58+
+ #[ORM\AssociationOverrides([
59+
+ new ORM\AssociationOverride(
60+
+ name: 'baseCurrency',
61+
+ joinColumns: new ORM\JoinColumn(name: 'base_currency_id', referencedColumnName: 'id', nullable: true)
62+
+ )]
63+
+ )]
5664
class Channel extends BaseChannel
5765
```
5866

0 commit comments

Comments
 (0)