Doctrine2: What is wrong with the association between these entities?

前端 未结 1 609
南旧
南旧 2021-01-22 06:06

I am trying to work through simple examples to see all the changes in Doctrine2.

Please take a look at the following entity snippets:

VCat.php

n         


        
相关标签:
1条回答
  • It's the property on VCat you need to reference not the entity type.

    JOIN c.VScat sub 
    

    should be:

    JOIN c.vScats sub 
    
    0 讨论(0)
提交回复
热议问题