Khandaker Toihidul Islam
Front-end Developer
React Js | Javascript | HTML | CSS | Bootstrap | Wordpress | PHP | Mysql

object of class App\Entity\** could not be converted to string in symfony 4

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

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

You may also like...

Leave a Reply