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

List for relational Entity in Symfony 4

For example,
I am going to create an organization belongs to a user. But I want to list like
key = id , value = email (instead of fullName) .
We need to change entity/user.php

     public function __toString() {
        return $this->email.' - '.$this->fullName;
    }    

You may also like...

Leave a Reply

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