We need to add _toString() function into entity class for any relations such as ManyToOne, ManyToMany

    public function __toString() {
        return $this->name;
    }   

By toihid

Leave a Reply