[Flow] Problem with routeParts

Bastian Waidelich bastian at typo3.org
Fri Mar 21 16:22:55 CET 2014


Hüseyin Sandikli wrote:

Hi Hüseyin,


>   name: 'Customer'
>   uriPattern: 'bla/{jhg}'
>   defaults:
>     '@subpackage': 'Administrator'
>     '@controller': 'User'
>     '@action': 'index'
>   routeParts:
>     jhg:
>       objectType: '\Skriptura\EventPlaner\Domain\Model\User'

You didn't specify the package to resolve, I wonder how this route 
should ever match.
Also the leading slash in "objectType" is incorrect (but that's probably 
unrelated to your issue).

> All works well without routeparts.

What do you mean by "without routeparts", without the "objectType"-part?
Probably the route is just skipped in that case because of the missing 
@package default (check your logs if it really matches).


> [...] i get an exception error like this: Fatal error:
> Exception thrown without a stack frame in Unknown on line 0.

This looks like a segfault to me.. What version of PHP are you using and 
did you already try to update it?


> I have alrdy add in the model a @Flow\Identity annotation.. why i get
> always this eexception ?

Why do you have the Identity annotation?
There's currently a bug in the object routing, that leads to creation of 
ObjectPathMappings for objects with Identity annotations (see [1]).
This is not a big issue (apart from unnecessary records in the database) 
but it could be related to your issue (persistence has to start up etc).

Just to make sure:
did you flush caches and did you validate your domain model using:
./flow doctrine:validate

?

HTH


[1] http://forge.typo3.org/issues/56607


-- 
Bastian Waidelich


More information about the Flow mailing list