Khandaker Toihidul Islam
Software Engineer
Backend : PHP | Mysql | Symfony | CakePhp | Wordpress | Drupal
Frontend : Node js | Vue js | React Js | Javascript | HTML | CSS | Bootstrap
Tools , Server : Nginx | Apache | Git | Jenkins | Jira | Asana | Silenium | Spira

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

Your email address will not be published. Required fields are marked *