Relative Content

Tag Archive for extbasetypo3-11.x

TYPO3 11.5: Get properties of invalid domain object in Controller action

There are two actions in my Controller, formAction() and sendOrderAction(). The latter should process a domain object Order, which is validated on submitting the formAction. This works as expected. But when the validation fails, I also want to access some properties the object might have in the formAction. But unfortunately, the object is always null when its validation failed (even if I use @TYPO3CMSExtbaseAnnotationIgnoreValidation). Is there any other way to access its properties?

TYPO3 11.5: Get properties of invalid domain object in Controller action

There are two actions in my Controller, formAction() and sendOrderAction(). The latter should process a domain object Order, which is validated on submitting the formAction. This works as expected. But when the validation fails, I also want to access some properties the object might have in the formAction. But unfortunately, the object is always null when its validation failed (even if I use @TYPO3CMSExtbaseAnnotationIgnoreValidation). Is there any other way to access its properties?