[FLOW3-general] IdentityRoutePart does not match
"Christian Müller (FLOW3 Team)"
christian.mueller at typo3.org
Thu Aug 23 00:16:33 CEST 2012
I think the table is filled on generating a link (resolving a route) for
a specific action / parameter combination. Which might make it difficult
in your use case. But if I remember correctly (and there should be an
example in the docs) you can have the object identifier much easier in
the URI and that is then not going through the Mapping table.
But I would need to check this out myself to give you a 100% answer on that.
Christian
On 22/08/12 23:30, Peter Rauber wrote:
> Hi guys,
>
> I am using a RestController and configured a subroute in my package for
> accessing article-resources:
>
> name: 'Mypackage Article Item'
> uriPattern: 'article/{article}'
> defaults:
> '@package': ' Mypackage'
> '@controller': 'Article'
> routeParts:
> article:
> objectType: ' Mypackage\Domain\Model\Article\Article'
> uriPattern: '{__identity}'
>
> A sample request looks like this:
>
> Mypackage/article/71df811d-8266-4742-b80f-2bc5eb628b12
>
> This route is never used, because the IdentityRoutePart's matchValue-method
> never returns TRUE. The reason for this is that the ObjectPathMapping-table
> in the database is empty.
> I found out, that this table is filled from the resolveValue-method of
> the IdentityRoutePart-object. But I did not figured out, when this method
> is triggered.
>
> How can the ObjectPathMapping-table be filled? Do I have to write code to
> fill this table? Doesn't make sense to me.
>
> Super-curious about any hints,
> Peter
>
More information about the FLOW3-general
mailing list