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

Deletion of has many relation works wrong #57

Open
terrasoff opened this issue Mar 30, 2018 · 1 comment
Open

Deletion of has many relation works wrong #57

terrasoff opened this issue Mar 30, 2018 · 1 comment

Comments

@terrasoff
Copy link

  • add new first has-many relation to entity (with empty id)
  • save all relations
  • add new second has-many relation and delete first (with empty id)
  • save all relations
  • first relation won't be deleted
terrasoff added a commit to terrasoff/yii2-relation-trait that referenced this issue Mar 30, 2018
@izac1
Copy link

izac1 commented May 13, 2018

it not complite solution this issue , if we use loadAll function, function dont delete all rel models , only if we add 2 and delete 1 its work , if delete 2 of 2 its load old 2 rel models

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

No branches or pull requests

2 participants