Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mathieu
potage
Commits
0eff7f47
Commit
0eff7f47
authored
Sep 17, 2018
by
Mat
Browse files
entité commande, une fonction qui peut servir
parent
84355a57
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/PotageBundle/Entity/Commande.php
100644 → 100755
View file @
0eff7f47
...
...
@@ -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
*
...
...
src/PotageBundle/Resources/views/Membre/detailCommande.html.twig
View file @
0eff7f47
{#
<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
%}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment