We need to add _toString() function into entity class for any relations such as ManyToOne, ManyToMany
public function __toString() {
return $this->name;
}
Frontend Developer
We need to add _toString() function into entity class for any relations such as ManyToOne, ManyToMany
public function __toString() {
return $this->name;
}