Skip to content

add additional api for adding, removing and saving related items #16

@cebe

Description

@cebe

$model->saveRelation() will only save relation attributes.
$model->addRelated('relation', $record/$pk) will add record to a MANY_MANY or HAS_MANY relation
$model->removeRelated('relation', $record/$pk) will remove a record from a MANY_MANY or HAS_MANY relation

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions