Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Open
cebe opened this Issue · 0 comments

1 participant

@cebe
Owner

$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

@cebe cebe modified the milestone: 1.1.2, 1.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.