"협회는 존재하지 않는 역 측면 필드를 참조":이 작동심포니 매핑 오류 : "매핑이 서로 상충는"& 다음과 같이 내가 매핑이 개 실체를 가지고
class ScriptFeedback
{
/**
* @ORM\ManyToOne(targetEntity="Script", inversedBy="feedback")
*/
private $script;
...
}
class Script
{
/**
* @ORM\OneToMany(targetEntity="ScriptFeedback", mappedBy="script")
*/
private $feebdack;
...
}
- I 이 사이트에서 마이 그 레이션을 생성 할 수 있으며 사이트는 내가 원하는 방식으로 정확하게 작동하며 스크립트와 피드백을 DB에 올바르게 연결합니다.
그러나 - 내가 doctrine:schema:validate
을 실행할 때 얻을 :
[Mapping] FAIL - The entity-class 'AppBundle\Entity\Script' mapping is invalid: * The mappings AppBundle\Entity\Script#feebdack and AppBundle\Entity\ScriptFeedback#script are inconsistent with each other.
[Mapping] FAIL - The entity-class 'AppBundle\Entity\ScriptFeedback' mapping is invalid: * The association AppBundle\Entity\ScriptFeedback#script refers to the inverse side field AppBundle\Entity\Script#feedback which does not exist.
모든 아이디어는 무엇이야? 이 때문에 주석의
당신은에서 오타를 가지고 있어야한다 스크립트 엔티티에 오타가' – KhorneHoly