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

Tag children add multiple entities #777

Merged
merged 5 commits into from
Dec 5, 2023

Conversation

spitfire305
Copy link
Collaborator

No description provided.

@spitfire305 spitfire305 requested a review from ilestis December 1, 2023 18:22
Copy link
Member

@ilestis ilestis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tweak the function name

app/Http/Controllers/Tags/ChildController.php Outdated Show resolved Hide resolved
]);

return $entityTag !== false;
EntityTag::create([
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just do $entity->tags->syncWithoutDetatching([$this->id]) ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syncWithoutDetatching() doesnt work with hasManyThrough relations.

@spitfire305 spitfire305 requested a review from ilestis December 4, 2023 22:55
Copy link
Member

@ilestis ilestis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broke all other dropdowns

resources/views/components/forms/foreign.blade.php Outdated Show resolved Hide resolved
resources/views/tags/entities/_form.blade.php Outdated Show resolved Hide resolved
resources/views/components/forms/foreign.blade.php Outdated Show resolved Hide resolved
@spitfire305 spitfire305 requested a review from ilestis December 5, 2023 16:46
Copy link
Member

@ilestis ilestis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:chefkiss:

@ilestis ilestis merged commit 1c42e89 into develop Dec 5, 2023
0 of 2 checks passed
@ilestis ilestis deleted the tag-children-add-multiple-entities branch December 5, 2023 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants