l3pp4rd/DoctrineExtensions — pull request #947 by keesschepers (2014-01-08 10:15:35+00:00)
Title: Fixes #944 option to urilize relationField when using the RelativeSlugHandler

This fixes issue #944, added an extra option to urilize the relationField which is by default not done.

Reason is, that somethimes you don't want to urilize the parent field where you are relating to because the parent field is already a slug. An example is that if you have a product and a category entity, where the product entity has a relative slug to the slug of the category. In that case you don't want to urilize it (default behavior).

But when you want to relate to a parent field that is not a slug then you do want to urilize it otherwise the URL's will be incorrect. I hope this fix is appropiate.

Example:

We have an article entity:

If the title field of relativeArticle contains spaces for example, this will now be replaced with dashes. If you don't configure urilize then nothing is done.

Please review and comments / suggestions are very welcome!