$this->getMetadata()->get(['entityDefs', $this->entityType, 'fields', 'status', 'notActualOptions']) ?? [] ]; } protected function filterOpen(&$result) { $result['whereClause'][] = [ 'status!=' => $this->getMetadata()->get(['entityDefs', $this->entityType, 'fields', 'status', 'notActualOptions']) ?? [] ]; } protected function filterClosed(&$result) { $result['whereClause'][] = [ 'status' => 'Closed' ]; } }