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 a member function add() on null #69

Closed batFormat closed 5 years ago

batFormat commented 6 years ago

I have created attribute "conditions", and attach values.

$advert = \App\Models\Advert::find(400); $advert->conditions->add(['value1', 'value2']);

Call to a member function add() on null

batFormat commented 6 years ago

How define ValueCollection?

Xesher commented 6 years ago

+1

batFormat commented 6 years ago

I created an attribute that I try to add multiple values ​​to, and I can not. I don't understand.

Do I need to add some method to the model?

ikirabjob commented 6 years ago

+1

batFormat commented 6 years ago

Please close. The error was due to the fact that in the database I did not specify the attribute is_collection, with value 1.