diff --git a/Resources/app-class-templates/Recipient.php b/Resources/app-class-templates/Recipient.php index 2027ae3..d0b3fbe 100644 --- a/Resources/app-class-templates/Recipient.php +++ b/Resources/app-class-templates/Recipient.php @@ -11,7 +11,7 @@ #[ORM\AssociationOverrides([ new ORM\AssociationOverride( name: 'categories', - joinTable: new ORM\JoinTable(name: 'wfd_newsletterRecipient_category'), + joinTable: new ORM\JoinTable(name: 'wfd_newsletterSubscription'), joinColumns: [new ORM\JoinColumn(onDelete: 'CASCADE')], inverseJoinColumns: [new ORM\JoinColumn(name: 'category_id', onDelete: 'CASCADE')], ), diff --git a/tests/Resources/AppClassTemplatesTest.php b/tests/Resources/AppClassTemplatesTest.php index 674d641..fc608b6 100644 --- a/tests/Resources/AppClassTemplatesTest.php +++ b/tests/Resources/AppClassTemplatesTest.php @@ -112,6 +112,12 @@ public function recipient_table_name_is_correct(): void self::assertTrue($this->getSchema()->hasTable('wfd_newsletterRecipient')); } + #[Test] + public function recipient_subscription_join_table_name_is_correct(): void + { + self::assertTrue($this->getSchema()->hasTable('wfd_newsletterSubscription')); + } + #[Test] public function recipient_has_unique_constraints_on_email_and_uuid(): void {