yiiext/activerecord-relation-behavior — pull request #30 by jorgerobles (2012-08-18 10:12:54+00:00)
Title: Commit of #8 feature, withRelation, withoutRelation scopes

## You can also…

Enable/Disable/Reset the relations to save. To do this you can use:

`$model->withoutRelations('relation name 1', 'relation name 2',…)->save()`

…will save all `$model` relations except the ones passed to the scope.

`$model->withRelations('relation name 1', 'relation name 2',…)->save()`

…will save only the `$model` relations passed to the scope

`$model->resetRelations()->save()`

…will clear the former scopes, and save all the relations of `$model`