是否有合适的方法转发到sfdoctrinoute而不丢失当前请求


Is there a proper way to forward to an sfDoctrineRoute without losing the current request?

我想在不丢失当前请求数据的情况下转发(或重定向)到sfDoctrineRoute。

我的问题是,当我使用forward时,路由没有正确执行,所以像$form->getObject()这样的东西不起作用。但如果我重定向到URL,我失去了所有的请求数据…

为什么不通过重定向传递请求参数呢?

$this->redirect('@someroute?params='.$params);