- 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:
1 parent
4b29232543
commit
6e84fc7195
2 files changed
+5
-7
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user