Symfony 通过“em”返回集合

问题描述

我正在尝试返回下图中突出显示ProductClass。并且要实现它首先需要返回 CartItem 集合。但我无法通过 em...

访问 CartItem 集合

enter image description here

$category = $Cart["CartItems"]["em"]
->getRepository(CartItem::class)
->findAll();
dump($category);

返回 CartItem #collection 内的 ProductClass 对象的可能方法是什么?我该如何解决这个问题

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)