Skip to content

HasMany relationship not working #68

Closed
@amacgregor

Description

@amacgregor

I'm trying to get a one to many relationship working. I tried doing a couple of things:

$container->items()->save($entity) ; // This does absolutely nothing

$entity->container()->associate($container); // Partially worked by creating the parent_id but the parent model doesn't now about the children.

Please advice.

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