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

Inserting values into a table that doesn't exist instead of attribute value table #164

Open
johnmaf21 opened this issue Dec 27, 2021 · 0 comments

Comments

@johnmaf21
Copy link

I'm trying to implement eav into a movie review web application. I have an error with inserting values which I'm not sure how to fix as I went through the documentation.

When I try to add a new genre.title value to the database I get an error message as it's trying to insert into a genre table that doesn't exist and not into the attribute values table.
image

GenreSeeder.php
image

App\Models\Genre.php
image

AppServiceProvider.php
image
I've tried both ways using the full path and morphMap and I still get the same error.

The attribute title does get inserted into the table however when it gets to the value it gives back the error from above.

attributes
image

attributes_entities
image

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

1 participant