|
|
@ -202,7 +202,7 @@ class Customer extends \yii\db\ActiveRecord |
|
|
|
{ |
|
|
|
{ |
|
|
|
public function getOrders() |
|
|
|
public function getOrders() |
|
|
|
{ |
|
|
|
{ |
|
|
|
return $this->hasMany(Order::className, ['customer_id' => 'id']); |
|
|
|
return $this->hasMany(Order::className(), ['customer_id' => 'id']); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|