Skip to content

Commit

Permalink
Reverted the touching of parent to the Channelable trait on assign/…
Browse files Browse the repository at this point in the history
…remove channels
  • Loading branch information
fulopattila122 committed Sep 25, 2024
1 parent 4a826a6 commit ae112f1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
- Added `domain` field to the orders table
- Added then automatic completion of `$order->domain` from the current request to the OrderFactory
- Added the `promotions_total` attribute getter to the Foundation `Order` model
- Added the touching of parent to the `Channelable` trait on assign/remove channels

## 4.1.0
##### 2024-07-11
Expand Down
1 change: 0 additions & 1 deletion src/Channel/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
##### 2024-XX-YY

- Changed `Channel::hasConfiguration()` to return false on empty arrays as well
- Added the touching of parent to the `Channelable` trait on assign/remove channels

## 4.1.0
##### 2024-07-11
Expand Down
2 changes: 0 additions & 2 deletions src/Channel/Traits/Channelable.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,11 @@ public function isNotInChannel(Channel|int|string $channel): bool
public function assignChannels(array|Model|Collection $channels): void
{
$this->channels()->sync($channels);
$this->touch();
}

public function removeFromAllChannels(): void
{
$this->channels()->detach();
$this->touch();
}

public function scopeWithinChannels(Builder $query, Collection|Channel|array $channels): Builder
Expand Down

0 comments on commit ae112f1

Please sign in to comment.