This commit is contained in:
Dave Mc Nicoll 2020-03-28 22:16:45 -04:00
commit f98cb2ded0
2 changed files with 3 additions and 2 deletions

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) {

View File

@ -52,6 +52,7 @@ class PdoObject extends PDO {
}
} catch (\PDOException $e) {
$this->rollback();
throw $e;
}