Php Symfony 1和条令-内存不足和未知关系别名异常

Php Symfony 1和条令-内存不足和未知关系别名异常,php,doctrine,symfony-1.4,Php,Doctrine,Symfony 1.4,我有一个问题,我还没能解决。我有一个eshop,在订单的几个步骤中,在其中一个步骤中,我得到了一个错误。在网站顶部,有一个常见的小型购物车概述,显示物品数量和最终价格。它在每一页上都显示出来,没有任何问题。但在其中一个订单步骤中,当呈现购物车概览模板时,脚本以如下错误结束: <strong class="cart"><a href="/frontend_server_dev.php/shopping-cart/overview">Cart</a></st

我有一个问题,我还没能解决。我有一个eshop,在订单的几个步骤中,在其中一个步骤中,我得到了一个错误。在网站顶部,有一个常见的小型购物车概述,显示物品数量和最终价格。它在每一页上都显示出来,没有任何问题。但在其中一个订单步骤中,当呈现购物车概览模板时,脚本以如下错误结束:

<strong class="cart"><a href="/frontend_server_dev.php/shopping-cart/overview">Cart</a></strong>
        You have <strong>1 item(s)</strong> in your cart
        <br />
        Total price is <strong>
Fatal error: Out of memory (allocated 499646464) (tried to allocate 80 bytes) in /var/www/libs/symfony/symfony-1.4.11-patched/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Relation/Parser.php on line 237
<strong><?php echo format_price($cart->getFinalPriceWithVAT()); ?></strong>

您的购物车中有1件物品

总价格 致命错误:第237行/var/www/libs/symfony/symfony-1.4.11-patched/lib/plugins/sfDoctrinePlugin/lib/vendor/doctor/Relation/Parser.php中内存不足(分配了4996464)(试图分配80字节)
因此,当调用检索购物车总价的函数时,会触发错误

在模板中,它如下所示:

<strong class="cart"><a href="/frontend_server_dev.php/shopping-cart/overview">Cart</a></strong>
        You have <strong>1 item(s)</strong> in your cart
        <br />
        Total price is <strong>
Fatal error: Out of memory (allocated 499646464) (tried to allocate 80 bytes) in /var/www/libs/symfony/symfony-1.4.11-patched/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Relation/Parser.php on line 237
<strong><?php echo format_price($cart->getFinalPriceWithVAT()); ?></strong>


我不明白。在我看来,“记忆不足”不是问题,有时它只是另一个问题的结果。但如果理论上存在问题,为什么不正常触发例外?为什么这个错误只出现在这个特定的顺序步骤中?在过去的几周里,我没有做任何改变,错误只是无缘无故地发生了。我尝试了一些调试,但没有结果。

向我们展示
$cart->getFinalPriceWithVAT()
的实现。你可能有循环关系吗?第237行的
Parser.php上有什么?检查表别名中的拼写错误,包括声明和用法。