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

Add simple delete for MANY_MANY #31

Closed
garex opened this issue Jan 7, 2014 · 1 comment
Closed

Add simple delete for MANY_MANY #31

garex opened this issue Jan 7, 2014 · 1 comment

Comments

@garex
Copy link

garex commented Jan 7, 2014

I suggest to add just now simple delete logic to MANY_MANY relation. Not waiting for implementing of link/unlink.

Logic there is straight enough: remove in connection table all records, that related to owner. For example in case of saving article with tags we should just delete from article_tag all records, where article_id = 123. It will be enough for all cases, as later insert command adds all really needed records.

In the meantime we have tests written in AntonTyutin/yii-with-related-behavior@e00fc07 fork.

ps: I have read all related issues and comments

@garex garex closed this as completed Jan 7, 2014
@garex
Copy link
Author

garex commented Jan 7, 2014

Closed in favor of pull request #32

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

1 participant