Vendor update && Started using DoctrineMigrations
This commit is contained in:
16
vendor/doctrine/orm/tools/sandbox/yaml/Entities.Address.dcm.yml
vendored
Normal file
16
vendor/doctrine/orm/tools/sandbox/yaml/Entities.Address.dcm.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
Entities\Address:
|
||||
type: entity
|
||||
table: addresses
|
||||
id:
|
||||
id:
|
||||
type: integer
|
||||
generator:
|
||||
strategy: AUTO
|
||||
fields:
|
||||
street:
|
||||
type: string
|
||||
length: 255
|
||||
oneToOne:
|
||||
user:
|
||||
targetEntity: User
|
||||
mappedBy: address
|
18
vendor/doctrine/orm/tools/sandbox/yaml/Entities.User.dcm.yml
vendored
Normal file
18
vendor/doctrine/orm/tools/sandbox/yaml/Entities.User.dcm.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
Entities\User:
|
||||
type: entity
|
||||
table: users
|
||||
id:
|
||||
id:
|
||||
type: integer
|
||||
generator:
|
||||
strategy: AUTO
|
||||
fields:
|
||||
name:
|
||||
type: string
|
||||
length: 50
|
||||
oneToOne:
|
||||
address:
|
||||
targetEntity: Address
|
||||
joinColumn:
|
||||
name: address_id
|
||||
referencedColumnName: id
|
Reference in New Issue
Block a user