I have tried setMasterDetail in much more complicated code now and works smoothly. Thanks.
thanks for the fast response.
It works in a way - the second table is loaded with no errors
But probably the post method does not work
because i get the whole table when i use
if (!empty($_POST[‘id’])) {
if (is_numeric($_POST[‘id’])) {
$c->where([‘original_item_id’ => $_POST[‘id’]]);
} else { …
test.php
include("libraries/autoload.php");
use GroceryCrud\Core\GroceryCrud;
$cont_id=210;
$lng = isset($_GET["l"]) ? $_GET["l"] : "el";
$rel_items = 'items210el';
$rel_menus= 'menus'.$cont_id.$lng ;
$items_db = 'items'.$cont_id.$lng ;
$database = include('database.php');
$config = in…