[Flow] Custom Property Mapper and Validation
Christian Müller
christian.mueller at typo3.org
Thu Jul 25 08:39:25 CEST 2013
Hi,
Mathis Hoffmann wrote:
> Hello again,
>
> I just found out that this is much easier to archive using the type
> hinting mechanism (adding a __type-attribute to the property by using a
> (hidden) form field <... property='__type'
> value='MyFullyQualifiedClassName' ..> ). That works so far fine for the
> creation of new objects. But I don't know how to add that type hint when
> fetching objects from persistence via a get request. Normally I would
> add a link like <f:link.action [...] arguments={argumentname: object} />
> which results in a link containing the __identity. But the
> __type-attribute is missing and I really do not know how to include
> that. Any ideas? I would like to avoid using the concrete classnames in
> my controller..
On editing with the UUID it will fetch the correct object (with correct
type) anyway as UUIDs are and should be unique across all tables
(probably even across the world ;)) so that shouldn't matter on editing.
>
> Cheers
> Mathis
>
Cheers,
Christian
More information about the Flow
mailing list