getFieldCriteria($this->schema->type()); return $criteria !== null && $criteria->isAllowedField($this->getKey()); } /** * Determine if the field should be included in the select clause of our query. * * @param Query $query * @param Schema $schema * @return bool * * @noinspection PhpMissingParentCallCommonInspection */ public function shouldSelect(Query $query, Schema $schema): bool { $criteria = $query->getFieldCriteria($this->schema->type()); return $criteria !== null && $criteria->isAllowedField($this->getKey()); } }