symfony-cmf/ChainRoutingBundle — pull request #14 by nacmartin (2012-01-29 21:22:59+00:00)
Title: when the route parameter is set but is the empty string, do not take it

Use case:

A form of a MenuItem Document is saved with the route field as empty value. It gets saved as an empty string. The Router checks the existence of the route parameter, even when is an empty string, and crash happens because is not a valid value.

A related fix would be to discover why form fields with empty strings are not saved as null in doctrine phpcr and fix it (in doctrine orm they get saved as null), but anyways, if the route parameter is an empty string it would be nice to fallback and try to get the route from the content parameter.