public function withoutNode(TreeModel $node) { $db = $this->getDbo(); $fldLft = $db->qn($this->getFieldAlias('lft')); $this->whereRaw('NOT(' . $db->qn('node') . '.' . $fldLft . ' = ' . $db->q($node->lft) . ')'); }