Skip to content

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

Closed
@SOHELAHMED7

Description

@SOHELAHMED7

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions