parent_id OR $o->id == $this->parent_id) return TRUE; $o = $this::findOrFail($o->parent_id); } } }