Skip to content

Instantly share code, notes, and snippets.

@kurozumi
Created April 18, 2017 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurozumi/8a6b794ce7c7dbadb5f982c062122a35 to your computer and use it in GitHub Desktop.
Save kurozumi/8a6b794ce7c7dbadb5f982c062122a35 to your computer and use it in GitHub Desktop.
【EC-CUBE3】会員情報を拡張するためのyamlのサンプルファイル
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: 50
customer_id:
type: integer
nullable: false
unsigned: false
manyToOne:
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