cakephp/cakephp

Adding ORM rules with the same name overrides previous one without warning

Opened this issue · 0 comments

Description

We have a lot of ORM rules with duplicate names which is not ideal but it used to work until 4.5. On upgrade to 5.0 rules with the same name get replaced and we get strange behavior with rules not being triggered. The ORM should give an indication that a rule was overriden with an exception to avoid hard to detect bugs.

CakePHP Version

5.0

PHP Version

8.2