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.
22 lines
493 B
22 lines
493 B
App\Entity\User:
|
|
type: entity
|
|
repositoryClass: App\Entity\Repository\UserRepository
|
|
table: user
|
|
id:
|
|
id:
|
|
type: integer
|
|
generator: { strategy: AUTO }
|
|
fields:
|
|
name:
|
|
type: string
|
|
length: 32
|
|
unique: true
|
|
password:
|
|
type: string
|
|
length: 64
|
|
|
|
oneToMany:
|
|
heroes:
|
|
targetEntity: Hero
|
|
mappedBy: user
|
|
cascade: ["persist", "merge"] |