mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 01:33:11 +08:00
Add v4.0.0
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user