Set eager loading for redirect rule conditions

This commit is contained in:
Alejandro Celaya 2024-02-24 20:24:41 +01:00
parent c1e88c3e83
commit 6646232311

View File

@ -37,5 +37,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
->build();
};