Skip to content

Instantly share code, notes, and snippets.

@kurozumi
Last active September 12, 2017 02:21
Show Gist options
  • Save kurozumi/6cf23ba385d7a3fd8c109cde8f7ff8ca to your computer and use it in GitHub Desktop.
Save kurozumi/6cf23ba385d7a3fd8c109cde8f7ff8ca to your computer and use it in GitHub Desktop.
【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
oneToOne:
Customer:
targetEntity: Eccube\Entity\Customer
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