getFieldNames($this->table); $cache = in_array('sa_kind', $cols, true) && in_array('sa_code', $cols, true); } return $cache; } /** * 신규 스키마면 구분·코드 순, 아니면 명·PK 순(옛 DB 호환). * * @return $this */ public function orderForDisplay() { return $this->hasKindCodeColumns() ? $this->orderBy('sa_kind', 'ASC')->orderBy('sa_code', 'ASC') : $this->orderBy('sa_name', 'ASC')->orderBy('sa_idx', 'ASC'); } }