It looks like you're new here. If you want to get involved, click one of these buttons!
I would like to duplicate a record without having to assign each field.
Similarly to what happens in the default CRUD delete handler I tried:
$product = new products\Product ($_POST['id']); $product->id = null; $product->keyval = false; $product->title .= __(" (duplicate)"); $product->put ();
but it doesn't work.
Based on what the method put() chooses the insert or the update?