yiiext/with-related-behavior — pull request #24 by benti (2013-01-02 13:08:48+00:00)
Title: Allow setting BELONGS_TO relations to null

Usage:

$user->group=null;
$user->withRelated->save(true,array('group'));

This sets user.group_id to null.
I added testing for this, too.