Klasa Post
/**
* @var
*
* @ORM\OneToMany(targetEntity="Comment", mappedBy="post")
*/
private $comments;
Klasa Comment
/**
* @var
*
* $ORM\ManyToOne(targetEntity="Post", inversedBy="comments")
*/
private $post;
Kod błędu
[Mapping] FAIL - The entity-class 'AppBundle\Entity\Post' mapping is invalid:
* The association AppBundle\Entity\Post#comments refers to the owning side field AppBundle\Entity\Comment#post which does not exist.
Próbowałem kombinować z hermetyzacją i ścieżkami do plików, ale nic to nie zmienia