Skip to content
This repository was archived by the owner on Feb 16, 2022. It is now read-only.
This repository was 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

@johnmaf21

Description

@johnmaf21

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions