Currently my code looks like that
$criteria = new CDbCriteria();
$criteria->compare('visible', 1);
$criteria->compare('branch_id', $this->id);
What I want is to do something like that
`branch_id`='$this->id' OR `branch_id` is NULL
How to do it with compare
function?