rinvex / laravel-attributes

⚠️ [ABANDONED] Rinvex Attributable is a robust, intelligent, and integrated Entity-Attribute-Value model (EAV) implementation for Laravel Eloquent, with powerful underlying for managing entity attributes implicitly as relations with ease. It utilizes the power of Laravel Eloquent, with smooth and seamless integration.
MIT License
433 stars 104 forks source link

Call to undefined method Rinvex\Attributes\Models\Type\Varchar::isEmpty() #90

Closed webaction closed 3 years ago

webaction commented 5 years ago

I get this error when I deleted a record from the system.

I can see that it is triggered from the EntityWasDeleted Event.

Omranic commented 4 years ago

Honestly I didn't understand your question, but if you still need any help feel free to re-open this issue, and add more information so we can help.

javoscript commented 4 years ago

I'm getting the same error when trying to delete a non-collection value. The method isEmpty() is being called on an instance of a value type (Rinvex\Attributes\Models\Type\Varchar, for example), instead of on a collection

kimtrien commented 4 years ago

Same error!

javoscript commented 4 years ago

I fixed it in my local project, and submitted a PR that was never merged... Just in case it is useful to you: https://github.com/rinvex/laravel-attributes/pull/103/commits/8c0ec12c06014d4d8caaff9d082d8f5f116a0fac

Omranic commented 3 years ago

Thank you for your patience, this is now fixed in the merged PR #103