Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
【EC-CUBE3】会員情報の項目を追加する方法
Plugin\Profile\Entity\Profile:
type: entity
table: plg_profile
repositoryClass: Plugin\Profile\Repository\ProfileRepository
id:
id:
type: integer
nullable: false
id: true
column: profile_id
generator:
strategy: AUTO
options:
unsigned: true
fields:
nickname:
type: string
nullable: true
length: 100
customer_id:
type: integer
nullable: false
unsigned: false
manyToOne:
Customer:
targetEntity: Eccube\Entity\Customer
inversedBy: Profile
joinColumn:
name: customer_id
referencedColumnName: customer_id
nullable: false
options:
unsigned: true
lifecycleCallbacks: { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment