!20 add createdby field to order form
All checks were successful
/ ls (pull_request) Successful in 32s
/ ls (push) Successful in 30s

This commit is contained in:
lubiana 2024-06-30 09:56:35 +02:00
parent 511f12f10f
commit 70041d7357
No known key found for this signature in database
4 changed files with 7 additions and 0 deletions

View file

@ -26,6 +26,9 @@ final class OrderItemController extends AbstractController
}
$orderItem = new OrderItem;
$username = $request->cookies->get('username', 'nobody');
$orderItem->setCreatedBy($username);
$form = $this->createForm(OrderItemType::class, $orderItem);
$form->handleRequest($request);