Bug #47054

IntegerConverter not found for properties annotated with @var int

Added by Philipp Maier over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
Property
Target version:
-
Start date:
2013-04-08
Due date:
% Done:

100%

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

Description

Attached you can find an working example package. The properties (and setter methods) in the DTO are annotated as 'int'.
On submitting the form, no suitable converter can be found. If the property is annotated with 'integer' it works as expected.

This should (imo) also work for 'int'.

The exact error message is:

#1297759968: Exception while property mapping for target type "TypeConverter\Test\Domain\Model\DTO\IntegerConverter", at property path "someProperty": No converter found which can be used to convert from "string" to "int".


Files

TypeConverter.Test.zip (4.42 KB) TypeConverter.Test.zip Example package which reproduces the bug Philipp Maier, 2013-04-08 21:00

Also available in: Atom PDF