⚠️ [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
Getting Illuminate/Database/QueryException with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column' on new installation #84
After following the installation instruction I can not update custom attributes in the table.
I am using laravel-attributes: ^1.0. I have registered the types and entities in boot method of AppServiceProvider.phpAppServiceProvider.php
Illuminate/Database/QueryException with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'pan_card' in 'field list' (SQL: update company_branches set updated_at = 2019-04-12 06:17:38, pan_card = CFAPF7177N where id = 2)'
Also the special relation eav is not working. $branch->load('eav'); throws RelationNotFoundException exception.
Anything I am doing wrong? Any help would be appricated.
After following the installation instruction I can not update custom attributes in the table. I am using
laravel-attributes: ^1.0
. I have registered the types and entities inboot
method ofAppServiceProvider.php
AppServiceProvider.phpAnd created an attribute for
CompanyBranch
like this, which worked fine.This created a data in
attributes
table andattribute_entity
table. But when I try to save value to the attributelaravel is throwing this exception
Also the special relation
eav
is not working.$branch->load('eav');
throwsRelationNotFoundException
exception. Anything I am doing wrong? Any help would be appricated.