Bug #36495

HTTP Response is sent before persistence preventing Exceptions to be displayed on redirect

Added by Alexander Berl over 9 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Persistence
Target version:
-
Start date:
2012-04-24
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

When a persistence Exception (e.g. "Integrity constraint violation: 1048 Column '...' cannot be null" due to missing @ORM\Column(nullable=true) annotation) is thrown after an action that does a redirect (e.g. a typical createObjectAction), the Exception isn't displayed (well it is but only for the matter of milliseconds the browser needs to do the redirect) because the redirect headers are sent before.

Therefore the Exception may go by unnoticed until the persistence is checked and Exception log inspected, which is undesired.

No data to display

Also available in: Atom PDF