Skip to content

Commit 8295c0f

Browse files
committed
关联注解可重复使用
1 parent 6c7236a commit 8295c0f

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

src/model/relation/BelongsTo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Attribute;
66

7-
#[Attribute(Attribute::TARGET_CLASS)]
7+
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
88
final class BelongsTo
99
{
1010
/**

src/model/relation/BelongsToMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Attribute;
66

7-
#[Attribute(Attribute::TARGET_CLASS)]
7+
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
88
final class BelongsToMany
99
{
1010
/**

src/model/relation/HasMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Attribute;
66

7-
#[Attribute(Attribute::TARGET_CLASS)]
7+
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
88
final class HasMany
99
{
1010
/**

src/model/relation/HasManyThrough.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Attribute;
66

7-
#[Attribute(Attribute::TARGET_CLASS)]
7+
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
88
final class HasManyThrough
99
{
1010
/**

src/model/relation/HasOne.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Attribute;
66

7-
#[Attribute(Attribute::TARGET_CLASS)]
7+
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
88
final class HasOne
99
{
1010
/**

src/model/relation/HasOneThrough.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Attribute;
66

7-
#[Attribute(Attribute::TARGET_CLASS)]
7+
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
88
final class HasOneThrough
99
{
1010
/**

src/model/relation/MorphByMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Attribute;
66

7-
#[Attribute(Attribute::TARGET_CLASS)]
7+
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
88
final class MorphByMany
99
{
1010
/**

src/model/relation/MorphMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Attribute;
66

7-
#[Attribute(Attribute::TARGET_CLASS)]
7+
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
88
final class MorphMany
99
{
1010
/**

src/model/relation/MorphOne.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Attribute;
66

7-
#[Attribute(Attribute::TARGET_CLASS)]
7+
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
88
final class MorphOne
99
{
1010
/**

src/model/relation/MorphTo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Attribute;
66

7-
#[Attribute(Attribute::TARGET_CLASS)]
7+
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
88
final class MorphTo
99
{
1010
/**

0 commit comments

Comments
 (0)