one to many relationship, if you wanna to delete one element in his collection

you need this:
    /**
     *
     * @var ArrayCollection
     * @ORM\OneToMany(targetEntity="LanguageOffered", mappedBy="institute", cascade={"all"},orphanRemoval=true)
     * @ORM\OrderBy({"id" = "ASC"})
     */

评论

热门博文