Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nicosp opened this issue Apr 16, 2024 · 0 comments
Open
Milestone

Comments

@nicosp
Copy link
Contributor

nicosp commented Apr 16, 2024

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

@nicosp nicosp added the defect label Apr 16, 2024
@othercorey othercorey added the ORM label Apr 16, 2024
@othercorey othercorey added this to the 5.0.8 milestone Apr 16, 2024
@ADmad ADmad modified the milestones: 5.0.8, 5.1.0 Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants