[FLOW3-general] IdentityRoutePart does not match

Peter Rauber peter.rauber at werkraum.net
Wed Aug 22 23:30:08 CEST 2012


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

-- 
 ..................................................................
peter rauber
web-entwickler - certified TYPO3 integrator


More information about the FLOW3-general mailing list