Skip to content

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

Open
cebe opened this Issue Mar 14, 2012 · 0 comments

1 participant

@cebe
yiiext member
cebe commented Mar 14, 2012

$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 Jan 7, 2015
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.