Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kurozumi/79ea9e86cee6275a642a2d4994f34daa to your computer and use it in GitHub Desktop.
Save kurozumi/79ea9e86cee6275a642a2d4994f34daa to your computer and use it in GitHub Desktop.
【EC-CUBE3】商品情報を拡張するためのyamlのサンプルファイル
Plugin\ProductProfile\Entity\ProductProfile:
type: entity
table: plg_product_profile
repositoryClass: Plugin\ProductProfile\Repository\ProductProfileRepository
id:
id:
type: integer
nullable: false
id: true
column: product_profile_id
generator:
strategy: AUTO
options:
unsigned: true
fields:
headline:
type: string
nullable: true
length: 50
product_id:
type: integer
nullable: false
unsigned: false
manyToOne:
Product:
targetEntity: Eccube\Entity\Product
joinColumn:
name: product_id
referencedColumnName: product_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