hasOne(Order::className(), ['id' => 'order_id']); } public function getItem() { return $this->hasOne(Item::className(), ['id' => 'item_id']); } }