Yellow Flag

This website version is not maintained anymore

Up to date documentation is available in Symfony 3.x website (see the dropdown menu above).

Advanced usage: example with Doctrine

That's not really an advanced topic, but the sample will be a bit hard to read (as it takes many files), so let's say it targets more experienced Symfony users.

In this demo, we're displaying a MyArray of MyElements, both persisted into the database. The MyArray entity only have an id and a name, and MyElement has id, MyArray's id and a value. This is quite the same as we seen in all demos, but persisted.


This demostration is made of the following files (click to see on GitHub in a new tab):
    -     Controller/AdvancedController.php
    -     Entity/MyArray.php
    -     Entity/MyElement.php
    -     Form/MyArrayType.php
    -     Form/MyElementType.php
    -     Repository/MyArrayRepository.php
    -     Resources/views/Advanced/doctrine-theme.html.twig
    -     Resources/views/Advanced/usageWithDoctrine.html.twig

Existing arrays:
Name Open Delete
___ ☘ Cela fonctionne ☘ Open Delete
_Greeting, :D happy 2018 Open Delete
() Open Delete
#72 Open Delete
#72uuuu Open Delete
1 Open Delete
11 Open Delete
1111 Open Delete
1111111111111111111111111111111111 Open Delete
11111111aaa Open Delete
1121 Open Delete
12345 Open Delete
1aa Open Delete
1Alpha Open Delete
2222 example Open Delete
2323 Open Delete
5454 Open Delete
86787 Open Delete
888 Open Delete
993223r23 Open Delete
aa Open Delete
aaaa Open Delete
aaaaaaa Open Delete
aaaaaaaaaaaaaa22 Open Delete
Abc Open Delete
adfadf Open Delete
adrian Open Delete
Array Open Delete
asaasexample Open Delete
asda Open Delete
asdas Open Delete
asdasd Open Delete
asdasdadasd Open Delete
asdfasdfasd8888 Open Delete
azazaz Open Delete
balala Open Delete
bam Open Delete
bbbbbbbbbbb Open Delete
bjfhj Open Delete
bla Open Delete
caca Open Delete
caracas Open Delete
cccio Open Delete
checks Open Delete
ciao Open Delete
Cmucik Open Delete
colombo Open Delete
cups Open Delete
defrsdf Open Delete
demo Open Delete
dfdt Open Delete
dgh Open Delete
dsf Open Delete
eqweqwe Open Delete
example Delete
exampleasdas Open Delete
exampleasfsafasf Open Delete
exampled Open Delete
exampledds Open Delete
examplesadfasfasdf Open Delete
examplesdf Open Delete
examplew Open Delete
fasdfasf Open Delete
fc Open Delete
fdgfdgfdgfdgfd Open Delete
fdsf Open Delete
fdsfds Open Delete
ff Open Delete
fff Open Delete
ffff Open Delete
fgdfgfg Open Delete
fgfdgdgdf Open Delete
gg Open Delete
gtgt Open Delete
Hello World ! Open Delete
hghgh Open Delete
ho Open Delete
jhkl Open Delete
JJ Open Delete
jtujjk Open Delete
khj Open Delete
kiki Open Delete
kjh Open Delete
kk Open Delete
kkk Open Delete
lel Open Delete
lkj Open Delete
lkjlkj Open Delete
lolo Open Delete
Marcin Open Delete
mm Open Delete
Mumbojumbo Open Delete
o Open Delete
oij Open Delete
ordersCollection Open Delete
oui Open Delete
Ouiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii Open Delete
pablo Open Delete
Pepa Open Delete
peppo Open Delete
perebetes Open Delete
perses Open Delete
po Open Delete
pppppii Open Delete
qsd Open Delete
qsdfqsdf Open Delete
rerererere Open Delete
rrrr Open Delete
rtr Open Delete
RV Open Delete
saASD Open Delete
sad Open Delete
samples Open Delete
sasa Open Delete
sdf Open Delete
sdg Open Delete
sdsd Open Delete
seeme Open Delete
Starojitski Open Delete
STASI Open Delete
Stringkey Open Delete
Ta mere la grosse choin Open Delete
Teszt Open Delete
trololo Open Delete
tryy5 Open Delete
tyty Open Delete
uiu Open Delete
undefined Open Delete
vcvcvcvcvv Open Delete
why doctrine on delete not work Open Delete
wxc<wxc Open Delete
yfcx Open Delete
You Open Delete
yyyyyyyyyyyyyy Open Delete
☘ Cela fonctionne ☘ Open Delete