From da34c7d3fe2056dc7e14d3c880f9964973957a04 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 25 Apr 2024 02:47:01 +0000 Subject: [PATCH] fix tests --- Controller/ApiController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index db114a6..aae0e38 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -227,11 +227,11 @@ final class ApiController extends Controller StockMapper::create()->execute($stock); $stockLocation = new StockLocation($stock->name . '-1'); - $stockLocation->stock = $stock->id; + $stockLocation->stock = $stock; StockLocationMapper::create()->execute($stockLocation); $stockShelf = new StockShelf($stockLocation->name . '-1'); - $stockShelf->location = $stockLocation->id; + $stockShelf->location = $stockLocation; StockShelfMapper::create()->execute($stockShelf); }