Commit 1129d820 by Klimov Paul

Mongo Active Relation unit test fixed.

parent deffc7f2
...@@ -27,6 +27,6 @@ class Customer extends ActiveRecord ...@@ -27,6 +27,6 @@ class Customer extends ActiveRecord
public function getOrders() public function getOrders()
{ {
return $this->hasMany(CustomerOrder::className(), ['customer_id' => 'id']); return $this->hasMany(CustomerOrder::className(), ['customer_id' => '_id']);
} }
} }
\ No newline at end of file
...@@ -22,6 +22,6 @@ class CustomerOrder extends ActiveRecord ...@@ -22,6 +22,6 @@ class CustomerOrder extends ActiveRecord
public function getCustomer() public function getCustomer()
{ {
return $this->hasOne(Customer::className(), ['id' => 'customer_id']); return $this->hasOne(Customer::className(), ['_id' => 'customer_id']);
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment