Add method saveWithAttributes to XDBActiveRecord.