You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
627 B
26 lines
627 B
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"] |