andWhere(['status' => 2]); } public function getOrders() { return $this->hasMany(CustomerOrder::className(), ['customer_id' => '_id']); } }