Add v4.0.0

This commit is contained in:
Alejandro Celaya
2024-03-03 18:50:23 +01:00
parent 9809f050ef
commit 97cb30565c
3 changed files with 7 additions and 8 deletions

View File

@@ -39,7 +39,6 @@ return static function (ClassMetadata $metadata, array $emConfig): void {
->setJoinTable(determineTableName('redirect_conditions_in_short_url_redirect_rules', $emConfig))
->addInverseJoinColumn('redirect_condition_id', 'id', onDelete: 'CASCADE')
->addJoinColumn('short_url_redirect_rule_id', 'id', onDelete: 'CASCADE')
->fetchEager() // Always fetch the corresponding conditions when loading a rule
->setOrderBy(['id' => 'ASC']) // Ensure a reliable order in the list of conditions
->cascadePersist() // Create automatically with the rule
->orphanRemoval() // Remove conditions when they are not linked to any rule