バージョン選択
フォーラム
メニュー
オンライン状況
|
|
104 人のユーザが現在オンラインです。 (97 人のユーザが フォーラム を参照しています。) |
|
|
その他
投稿者 |
スレッド |
ゲスト |
投稿日時: 2016/6/21 13:43
対応状況: −−−
|
|
Re: SQLの記述について ありがとうございました。 何とか結合の部分につきましては理解できました。
dtb_order_detailのorder_idとproduct_idを結合条件に指定したいのですが OrderDetailのymlファイルにてorder_idとproduct_idの使用する際のIDやフィールドが定義されていなく使えないようなのですがこの場合は、ymlに追記を行う必要があるのでしょうか? 最初確認しておらずidを使用したら、order_detail_idと結合されてしまい当然のようにほしい値が取れなかったのですが…
Eccube\Entity\OrderDetail: type: entity table: dtb_order_detail repositoryClass: Eccube\Repository\OrderDetailRepository indexes: dtb_order_detail_product_id_key: columns: - product_id id: id: type: integer nullable: false unsigned: false id: true column: order_detail_id generator: strategy: AUTO fields: product_name: type: text nullable: false product_code: type: text nullable: true class_name1: type: text nullable: true class_name2: type: text nullable: true class_category_name1: type: text nullable: true class_category_name2: type: text nullable: true price: type: decimal nullable: true precision: 10 scale: 0 quantity: type: decimal nullable: true precision: 10 scale: 0 tax_rate: type: decimal nullable: true precision: 10 scale: 0 tax_rule: type: smallint nullable: true unsigned: false manyToOne: Order: targetEntity: Eccube\Entity\Order inversedBy: OrderDetails joinColumn: name: order_id referencedColumnName: order_id nullable: false Product: targetEntity: Eccube\Entity\Product joinColumn: name: product_id referencedColumnName: product_id nullable: false ProductClass: targetEntity: Eccube\Entity\ProductClass joinColumn: name: product_class_id referencedColumnName: product_class_id nullable: false lifecycleCallbacks: { }
|
|
|
|
統計情報
総メンバー数は88,856名です
総投稿数は109,989件です
|