laravel-tagging icon indicating copy to clipboard operation
laravel-tagging copied to clipboard

Tagged Data Inconsistencies

Open JoeyStacks opened this issue 5 years ago • 2 comments

It appears as though there are no events to update the tagged table when updating/destroying a tag. Ie when a tag is updated the associated records in the tagged pivot table should be updated to reflect these changes and to keep the relationship intact. In addition, if a tag is destroyed the associated records in the pivot table should be destroyed as well. Am I missing something or was this just overlooked?

JoeyStacks avatar Jul 05 '19 13:07 JoeyStacks

This is interesting. I never considered the idea of changing a tag string that is still in use.

Ok I like this idea though of having this library handling this seamlessly. Same with deleting.

rtconner avatar Jul 06 '19 13:07 rtconner

+1 on having Tag delete functionality which would do a cascading untag of the associated model instances

mberneis avatar Jun 20 '23 19:06 mberneis