報(bào)這錯(cuò)是哪里出問題了?
The target-entity Scourgen\WebBundle\Entity\book cannot be found in 'Scourgen\WebBundle\Entity\User#books'.
The target-entity Scourgen\WebBundle\Entity\book cannot be found in 'Scourgen\WebBundle\Entity\User#books'.
2016-10-21
舉報(bào)
2016-11-08
注意
在注解的時(shí)候targetEntity指的是你的Entity,也就是實(shí)體類名,inversedBy和mappedBy指的是你要映射的Mapping,及你定義的變量,如private users, ?private books,而不是User和Book,不是實(shí)體