Reimport clearing tags from taggables table #417
Unanswered
OccultScientist
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a command that imports data from a site that has the following code:
if ($item->node->tags != "") { $article->tags = array_map('trim', $item->node->tags); } $article->save();
The first run creates the tags and taggable table entries fine.
If I re-run, the taggable data for that id is deleted.
I'm using the nwidart/laravel-modules package if that makes a difference.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions