doctrine 2, how do get data from the inverse side (many to one)
问题 I have two entities, entry and comments. comments: /** * @Entity(repositoryClass="\Entities\Blog\CommentRepository") * @Table(name="blog_comment") * @HasLifecycleCallbacks */ class Comment extends \Entities\AbstractEntity { /** * @Id @Column(name="id", type="integer") * @GeneratedValue(strategy="AUTO") */ protected $id; /** * @ManyToOne(targetEntity="Entry", inversedBy="comments") * @JoinColumn(name="entry_id", referencedColumnName="id") */ protected $entry; /** @Column(name="approved", type=