/*
* This case matches, when a doctrine attribute model don't exist
*/
if ($exception instanceof ReflectionException &&
strpos($exception->
getMessage(), 'Shopware\Models\Attribute'
)) { return true;
} /*
* This case matches, when a doctrine model field defined which not exist in the database
*/
if ($exception instanceof PDOException &&
strpos($exception->
getFile(), '/Doctrine/DBAL/'
)) { return true;
} /*
* This case matches, when a parent model selected and the child model loaded the attribute over the lazy loading process.
*/
if ($exception instanceof MappingException &&
strpos($exception->
getMessage(), 'Shopware\Models\Attribute'
)) { return true;
} return false;
}