- Fixed a bug while retrieving a non-existing field (from a table which has a field not included within your entity)

This commit is contained in:
Dave Mc Nicoll committed 2020-03-26 16:28:03 -04:00
1 parent 4b29232543
commit 6e84fc7195
2 files changed
+5 -7

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ class EntityResolver {
public function field($name, $fieldKey = self::KEY_ENTITY_NAME, $throwException = true) : ? array
{
try{
return $this->fieldList($fieldKey)[$name];
return $this->fieldList($fieldKey)[$name] ?? null;
}
catch(\Throwable $e) {
if ( $throwException) {