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

In case of updating a model, generator creates redundant inverse relations #88

Open
SOHELAHMED7 opened this issue Feb 28, 2025 · 1 comment · May be fixed by #89
Open

In case of updating a model, generator creates redundant inverse relations #88

SOHELAHMED7 opened this issue Feb 28, 2025 · 1 comment · May be fixed by #89
Assignees

Comments

@SOHELAHMED7
Copy link
Member

It seems like this bug is introduced by #26

Steps to reproduce:

  • A model is already present with relation (hasMany)
  • run generator $ ./yii gii/api --ignoreSpecErrors
  • a relation where inverse relation is needed is changed. This is OK
  • few other redundant relations are generated. This is not OK

I will create a failing test which will describe this issue in more detail

@SOHELAHMED7 SOHELAHMED7 self-assigned this Feb 28, 2025
@SOHELAHMED7 SOHELAHMED7 changed the title In case of update a model, inverse relation generated redundant relation In case of updating a model, generator creates redundant inverse relations Feb 28, 2025
@SOHELAHMED7
Copy link
Member Author

Failing test is at b050abd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant