Skip to content

[7.x] $this->exists is not updated after pivot delete#33347

Merged
taylorotwell merged 3 commits into
laravel:7.xfrom
tobiasnitsche:patch-1
Jun 26, 2020
Merged

[7.x] $this->exists is not updated after pivot delete#33347
taylorotwell merged 3 commits into
laravel:7.xfrom
tobiasnitsche:patch-1

Conversation

@tobiasnitsche

Copy link
Copy Markdown
Contributor

After deleting a pivot model, the flag $this->exists is not updated to false after delete.

This issue only appears when no primary key for the pivot model is defined.

$this->exists = false is not set, if no primary key is defined
@driesvints driesvints changed the title $this->exists is not updated after pivot delete [7.x] $this->exists is not updated after pivot delete Jun 26, 2020
@taylorotwell taylorotwell merged commit 2dc71a5 into laravel:7.x Jun 26, 2020
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

Successfully merging this pull request may close these issues.

2 participants