Bug #67044

Normalize Type int to integer doesn't work in DTOs

Added by Kevin Ditscheid over 6 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-05-20
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

I walk across a bug with the PropertyMapper when i declare a property as int instead of integer in a DTO Model.
The error message says as follows:

#1297759968: Exception while property mapping at property path "confirmation":No converter found which can be used to convert from "string" to "int".

I found an issue report and a fix in the TYPO3 FLOW Bugtracker under: https://forge.typo3.org/issues/47054

Maybe this fix has not been ported to extbase yet.

After i changed the declaration from int to integer, everything works as expected.

To reproduce this, simply add an action in a controller which expects a DTO as parameter and let it validate this. Add a property with declaration int to the DTO and submit it to the created action with an integer value for this property.

I encountered this with TYPO3 6.2.13 from github TYPO3_6-2 branch.

Also available in: Atom PDF