Skip to content
This repository was archived by the owner on Feb 16, 2022. It is now read-only.

FIX: Make values always be a collection when force deleting. Fixes #90. #103

Merged
merged 1 commit into from
Jan 3, 2021

Conversation

javoscript
Copy link
Contributor

Just wrap the $values variable in a collection.
If it was a single value, now it is a collection and the isEmpty() method will not throw an Exception.
If it was already a collection, nothing changes.

@jakubmikita
Copy link

Can this be merged please?

@jakubmikita
Copy link

Unfortunately, this patch only suppresses the error, but no relations are removed from the database. The problem is with $entity->relationLoaded()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants