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

EAV values empty #27

Closed
psychonetic opened this issue Jan 4, 2018 · 1 comment
Closed

EAV values empty #27

psychonetic opened this issue Jan 4, 2018 · 1 comment

Comments

@psychonetic
Copy link
Contributor

psychonetic commented Jan 4, 2018

If I create an entity and let's say we have a size attribute, the size is always null.

$art = Article::find(1);  //$art->size = null

$art = Article::with('eav)->get(); //size also empty

//in Model Article  protected $with = ['eav'];

$art = Article::all(); //size also empty

Is there anything wrong how I access the size or is this a bug?
The value in the database is correct. So in the database I can find the size value (it's "m").

Laravel 5.5, attributes Version is 0.0.3.

@Omranic
Copy link
Member

Omranic commented Jan 4, 2018

This package still not yet tagged as stable. You can only use develop branch for now, use: composer require rinvex/attributes:dev-develop it should work smoothly even it's still in development. Please feel free to open a new issue or open this one, if you need further assistance 🙂

P.S. there was some changes recently to this packag, so make sure to review the docs 🙂

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

No branches or pull requests

2 participants