Commit e9142b0dd0fed57c9b8c6ac016c9670c239d0f7e
1 parent
4201b4a1
add create_item to translate
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
models/EventsToProducts.php
| @@ -55,7 +55,7 @@ class EventsToProducts extends \yii\db\ActiveRecord | @@ -55,7 +55,7 @@ class EventsToProducts extends \yii\db\ActiveRecord | ||
| 55 | */ | 55 | */ |
| 56 | public function getEvent() | 56 | public function getEvent() |
| 57 | { | 57 | { |
| 58 | - return $this->hasOne(Event::className(), ['event_id' => 'event_id']); | 58 | + return $this->hasOne(Event::className(), ['id' => 'event_id']); |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | /** | 61 | /** |
| @@ -63,6 +63,6 @@ class EventsToProducts extends \yii\db\ActiveRecord | @@ -63,6 +63,6 @@ class EventsToProducts extends \yii\db\ActiveRecord | ||
| 63 | */ | 63 | */ |
| 64 | public function getProduct() | 64 | public function getProduct() |
| 65 | { | 65 | { |
| 66 | - return $this->hasOne(Product::className(), ['product_id' => 'product_id']); | 66 | + return $this->hasOne(Product::className(), ['id' => 'product_id']); |
| 67 | } | 67 | } |
| 68 | } | 68 | } |