Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /app/vendor/doctrine/orm/src/Internal/Hydration/AbstractHydrator.php on line 340

Warning: Cannot modify header information - headers already sent by (output started at /app/vendor/doctrine/orm/src/Internal/Hydration/AbstractHydrator.php:340) in /app/vendor/symfony/http-foundation/Session/SessionUtils.php on line 52

Warning: Cannot modify header information - headers already sent by (output started at /app/vendor/doctrine/orm/src/Internal/Hydration/AbstractHydrator.php:340) in /app/vendor/symfony/http-foundation/Session/SessionUtils.php on line 52

Warning: Cannot modify header information - headers already sent by (output started at /app/vendor/doctrine/orm/src/Internal/Hydration/AbstractHydrator.php:340) in /app/vendor/symfony/http-foundation/Session/SessionUtils.php on line 54
Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) (500 Internal Server Error)

Symfony Exception

OutOfMemoryError

HTTP 500 Internal Server Error

Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)

Exception

Symfony\Component\ErrorHandler\Error\ OutOfMemoryError

Show exception properties
Symfony\Component\ErrorHandler\Error\OutOfMemoryError {#181247
  -error: array:4 [
    "type" => 1
    "message" => "Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)"
    "file" => "/app/vendor/doctrine/orm/src/Internal/Hydration/AbstractHydrator.php"
    "line" => 340
  ]
}
  1. // Per definition it cannot be that a field is defined several times and has several values.
  2. if (isset($rowData['data'][$dqlAlias][$fieldName])) {
  3. break;
  4. }
  5. $rowData['data'][$dqlAlias][$fieldName] = $type
  6. ? $type->convertToPHPValue($value, $this->platform)
  7. : $value;
  8. if ($rowData['data'][$dqlAlias][$fieldName] !== null && isset($cacheKeyInfo['enumType'])) {
  9. $rowData['data'][$dqlAlias][$fieldName] = $this->buildEnum($rowData['data'][$dqlAlias][$fieldName], $cacheKeyInfo['enumType']);

Stack Trace

OutOfMemoryError
Symfony\Component\ErrorHandler\Error\OutOfMemoryError:
Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)

  at vendor/doctrine/orm/src/Internal/Hydration/AbstractHydrator.php:340