Commit 0eff7f47 authored by Mat's avatar Mat

entité commande, une fonction qui peut servir

parent 84355a57
......@@ -194,6 +194,19 @@ class Commande
return $this->commandeLegumes;
}
/**
* @param ArrayCollection $legumes
* @return Commande
*/
public function setCommandeLegumes(ArrayCollection $legumes)
{
foreach ($legumes as $legume)
{
$this->addCommandeLegumes($legume);
}
return $this;
}
/**
* Add commandeLegumes
*
......
{#
<table class="table table-sm table-hover">
<thead>
<tr>
......@@ -30,6 +31,7 @@
</table>
<button type="button" class="btn btn-lg btn-block btn-primary float-right">Envoyer la commande</button>
#}
{% for label, messages in app.flashes() %}
{% for message in messages %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment