[Flow] Persisting objects that are not Models
Pankaj Lele
pankaj at lelesys.com
Wed Sep 4 16:30:57 CEST 2013
Hi Christian,
> I wonder if there is a way to add support to persisting Objects as
> field Values, like it works with the \DateTime Class. I would like to
> store \DateInterval Objects in a field.
>
> DateTime Objects are converted into a timestamp and i wonder where this
> conversion takes place and if it is possible to implement something
> like this for my flow packages.
This conversion is handled by the TypeConverters of Flow here you can
find the required help [1]
And for example you can have look at
TYPO3\Flow\Property\TypeConverter\DateTimeConverter
[1]
http://docs.typo3.org/flow/TYPO3FlowDocumentation/TheDefinitiveGuide/PartIII/PropertyMapping.html#writing-your-own-typeconverters
-Pankaj
--
Pankaj Lele
CTO - Lelesys, India
http://www.lelesys.com
Twitter: @pankajlele
More information about the Flow
mailing list