1

in config.yml

edit:
                title:  'editing %firstname% '
                fields:
                    - {property: firstname, type: string}
                    - {property: lastname, type: string}
                    - {property: email, type: string}
                    - {property: password,type: password}
                    - {property: mobilenumber, type: string}
                    - enabled

i want the username to come up dynamically and %firstname% doesn't work.

Megumin
  • 191
  • 3
  • 15

1 Answers1

1

You can only display entity ID in edit view like this:

title: 'editing %%entity_id%%'

Starting from there, you can use Doctrine composite primary key to include firstname (or username?) in your primary key on User class:

/** @ORM\Id @ORM\Column(type="string") */
private $username;
  • i'm aware of that and it doesn't help me cause i don't want to set a name as an id in my class. – Megumin May 08 '18 at 23:25