Symfony 4. InheritanceType(“JOINED”) and ParamConverter. Strange phenomenon

会有一股神秘感。 提交于 2019-12-02 07:50:49

I'll take a guess here, although I agree it's weird. I notice you don't have a custom repository for the DieselCase to parallel that for the CarloanCase. Could it be, that for some odd reason, the CarloanCaseRepository is being picked up, mistakenly for the DieselCase query? I think it would explain the cause of the 500 error, in that you're getting the wrong kind of entity delivered. To be sure, I'd put in some xdebug breakpoints in that repo to see how it's getting used in that circumstance. Also, I'd try adding a custom/specific DieselCaseRepository to see if that fixes the error. (I'd expect you'd want that in the long run anyway.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!