Commit b4c79f2b by Klimov Paul

Example code consistency fix

parent b5ae6146
......@@ -387,9 +387,9 @@ class Customer extends \yii\db\ActiveRecord
class Order extends \yii\db\ActiveRecord
{
// Order has_one Customer via Customer.id -> customer_id
public function getCustomer()
{
// Order has_one Customer via Customer.id -> customer_id
return $this->hasOne(Customer::className(), ['id' => 'customer_id']);
}
}
......
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