App\Entity\User: type: entity repositoryClass: App\Entity\Repository\UserRepository table: user id: id: type: integer generator: { strategy: AUTO } fields: username: type: string length: 32 unique: true password: # the hashed password type: string apiToken: type: string unique: true nullable: true roles: type: json oneToMany: heroes: targetEntity: Hero mappedBy: user cascade: ["persist", "merge"]