Total Complexity | 1 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | #[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)] |
||
17 | #[NamedArgumentConstructor] |
||
18 | class ForeignKey |
||
19 | { |
||
20 | /** |
||
21 | * @param non-empty-string $target Role or class name of the target entity. |
||
|
|||
22 | * @param list<non-empty-string>|non-empty-string|null $innerKey You don't need to specify this if the attribute |
||
23 | * is used on a property. |
||
24 | * @param list<non-empty-string>|non-empty-string|null $outerKey Outer key in the target entity. |
||
25 | * Defaults to the primary key. |
||
26 | * @param 'CASCADE'|'NO ACTION'|'SET null' $action |
||
27 | * @param bool $indexCreate Note: MySQL and MSSQL might create an index for the foreign key automatically. |
||
28 | */ |
||
29 | public function __construct( |
||
42 |