Bonjour a tois,
Je débute sur symfony2, donc evitez de dire que ma question est bete
J'ai 2 tables : account et contact, comme vous pouvez l'imaginer un account contient plusieurs contacts et un contact appartient à un et un seul account.
Mon probleme consiste a pouvoir afficher les contacts d'un compte dans le show.html.twig du account.

Ma Contact entity:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
<?php
 
namespace Project\CRMBundle\Entity;
 
use Doctrine\ORM\Mapping as ORM;
 
/**
 * Contact
 *
 * @ORM\Table(name="contact")
 * @ORM\Entity
 */
class Contact
{
    /**
     * @var integer
     *
     * @ORM\Column(name="ID", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;
 
    /**
     * @var string
     *
     * @ORM\Column(name="CONTACTNAME", type="string", length=50, nullable=false)
     */
    private $contactname;
 
    /**
     * @var string
     *
     * @ORM\Column(name="CONTACTSURNAME", type="string", length=50, nullable=false)
     */
    private $contactsurname;
 
     /**
     * @var \Account
     *
     * @ORM\ManyToOne(targetEntity="Account", inversedBy="Contact"))
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="ACCOUNTID", referencedColumnName="ID")
     * })
     */
    private $accountid;
 
 
 
 
 
 
 
 
 
 
 
 
    /**
     * @var float
     *
     * @ORM\Column(name="CONTACTPHONENUMBER1", type="decimal", nullable=true)
     */
    private $contactphonenumber1;
 
    /**
     * @var float
     *
     * @ORM\Column(name="CONTACTPHONENUMBER2", type="decimal", nullable=true)
     */
    private $contactphonenumber2;
 
    /**
     * @var float
     *
     * @ORM\Column(name="CONTACTMOBILEPHONENUMBER1", type="decimal", nullable=true)
     */
    private $contactmobilephonenumber1;
 
    /**
     * @var float
     *
     * @ORM\Column(name="CONTACTMOBILEPHONENUMBER2", type="decimal", nullable=true)
     */
    private $contactmobilephonenumber2;
 
    /**
     * @var string
     *
     * @ORM\Column(name="CONTACTADDRESS", type="string", length=100, nullable=true)
     */
    private $contactaddress;
 
    /**
     * @var string
     *
     * @ORM\Column(name="CONTACTWORKEMAIL", type="string", length=100, nullable=true)
     */
    private $contactworkemail;
 
    /**
     * @var float
     *
     * @ORM\Column(name="CONTACTFAX", type="decimal", nullable=true)
     */
    private $contactfax;
 
    /**
     * @var string
     *
     * @ORM\Column(name="CONTACTPERSONALEMAIL", type="string", length=100, nullable=true)
     */
    private $contactpersonalemail;
 
    /**
     * @var string
     *
     * @ORM\Column(name="PREFEREDCONTACTMODEL", type="string", nullable=true)
     */
    private $preferedcontactmodel;
 
    /**
     * @var \DateTime
     *
     * @ORM\Column(name="CONTACTBIRTHDAY", type="date", nullable=true)
     */
    private $contactbirthday;
 
    /**
     * @var string
     *
     * @ORM\Column(name="COMMENTS", type="string", length=500, nullable=true)
     */
    private $comments;
 
    /**
     * @var string
     *
     * @ORM\Column(name="CONTATMANAGER", type="string", length=50, nullable=true)
     */
    private $contatmanager;
 
 
 
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }
 
    /**
     * Set contactname
     *
     * @param string $contactname
     * @return Contact
     */
    public function setContactname($contactname)
    {
        $this->contactname = $contactname;
 
        return $this;
    }
 
    /**
     * Get contactname
     *
     * @return string 
     */
    public function getContactname()
    {
        return $this->contactname;
    }
 
    /**
     * Set contactsurname
     *
     * @param string $contactsurname
     * @return Contact
     */
    public function setContactsurname($contactsurname)
    {
        $this->contactsurname = $contactsurname;
 
        return $this;
    }
 
    /**
     * Get contactsurname
     *
     * @return string 
     */
    public function getContactsurname()
    {
        return $this->contactsurname;
    }
 
    /**
     * Set contactphonenumber1
     *
     * @param float $contactphonenumber1
     * @return Contact
     */
    public function setContactphonenumber1($contactphonenumber1)
    {
        $this->contactphonenumber1 = $contactphonenumber1;
 
        return $this;
    }
 
    /**
     * Get contactphonenumber1
     *
     * @return float 
     */
    public function getContactphonenumber1()
    {
        return $this->contactphonenumber1;
    }
 
    /**
     * Set contactphonenumber2
     *
     * @param float $contactphonenumber2
     * @return Contact
     */
    public function setContactphonenumber2($contactphonenumber2)
    {
        $this->contactphonenumber2 = $contactphonenumber2;
 
        return $this;
    }
 
    /**
     * Get contactphonenumber2
     *
     * @return float 
     */
    public function getContactphonenumber2()
    {
        return $this->contactphonenumber2;
    }
 
    /**
     * Set contactmobilephonenumber1
     *
     * @param float $contactmobilephonenumber1
     * @return Contact
     */
    public function setContactmobilephonenumber1($contactmobilephonenumber1)
    {
        $this->contactmobilephonenumber1 = $contactmobilephonenumber1;
 
        return $this;
    }
 
    /**
     * Get contactmobilephonenumber1
     *
     * @return float 
     */
    public function getContactmobilephonenumber1()
    {
        return $this->contactmobilephonenumber1;
    }
 
    /**
     * Set contactmobilephonenumber2
     *
     * @param float $contactmobilephonenumber2
     * @return Contact
     */
    public function setContactmobilephonenumber2($contactmobilephonenumber2)
    {
        $this->contactmobilephonenumber2 = $contactmobilephonenumber2;
 
        return $this;
    }
 
    /**
     * Get contactmobilephonenumber2
     *
     * @return float 
     */
    public function getContactmobilephonenumber2()
    {
        return $this->contactmobilephonenumber2;
    }
 
    /**
     * Set contactaddress
     *
     * @param string $contactaddress
     * @return Contact
     */
    public function setContactaddress($contactaddress)
    {
        $this->contactaddress = $contactaddress;
 
        return $this;
    }
 
    /**
     * Get contactaddress
     *
     * @return string 
     */
    public function getContactaddress()
    {
        return $this->contactaddress;
    }
 
    /**
     * Set contactworkemail
     *
     * @param string $contactworkemail
     * @return Contact
     */
    public function setContactworkemail($contactworkemail)
    {
        $this->contactworkemail = $contactworkemail;
 
        return $this;
    }
 
    /**
     * Get contactworkemail
     *
     * @return string 
     */
    public function getContactworkemail()
    {
        return $this->contactworkemail;
    }
 
    /**
     * Set contactfax
     *
     * @param float $contactfax
     * @return Contact
     */
    public function setContactfax($contactfax)
    {
        $this->contactfax = $contactfax;
 
        return $this;
    }
 
    /**
     * Get contactfax
     *
     * @return float 
     */
    public function getContactfax()
    {
        return $this->contactfax;
    }
 
    /**
     * Set contactpersonalemail
     *
     * @param string $contactpersonalemail
     * @return Contact
     */
    public function setContactpersonalemail($contactpersonalemail)
    {
        $this->contactpersonalemail = $contactpersonalemail;
 
        return $this;
    }
 
    /**
     * Get contactpersonalemail
     *
     * @return string 
     */
    public function getContactpersonalemail()
    {
        return $this->contactpersonalemail;
    }
 
    /**
     * Set preferedcontactmodel
     *
     * @param string $preferedcontactmodel
     * @return Contact
     */
    public function setPreferedcontactmodel($preferedcontactmodel)
    {
        $this->preferedcontactmodel = $preferedcontactmodel;
 
        return $this;
    }
 
    /**
     * Get preferedcontactmodel
     *
     * @return string 
     */
    public function getPreferedcontactmodel()
    {
        return $this->preferedcontactmodel;
    }
 
    /**
     * Set contactbirthday
     *
     * @param \DateTime $contactbirthday
     * @return Contact
     */
    public function setContactbirthday($contactbirthday)
    {
        $this->contactbirthday = $contactbirthday;
 
        return $this;
    }
 
    /**
     * Get contactbirthday
     *
     * @return \DateTime 
     */
    public function getContactbirthday()
    {
        return $this->contactbirthday;
    }
 
    /**
     * Set comments
     *
     * @param string $comments
     * @return Contact
     */
    public function setComments($comments)
    {
        $this->comments = $comments;
 
        return $this;
    }
 
    /**
     * Get comments
     *
     * @return string 
     */
    public function getComments()
    {
        return $this->comments;
    }
 
    /**
     * Set contatmanager
     *
     * @param string $contatmanager
     * @return Contact
     */
    public function setContatmanager($contatmanager)
    {
        $this->contatmanager = $contatmanager;
 
        return $this;
    }
 
    /**
     * Get contatmanager
     *
     * @return string 
     */
    public function getContatmanager()
    {
        return $this->contatmanager;
    }
 
 
 
 
 
 
     /**
     * Set accountid
     *
     * @param \Project\CRMBundle\Entity\Account $accountid
     * @return Account
     */
    public function setAccountid(\Project\CRMBundle\Entity\Account $accountid = null)
    {
        $this->accountid = $accountid;
 
        return $this;
    }
 
    /**
     * Get accountid
     *
     * @return \Project\CRMBundle\Entity\Account 
     */
    public function getAccountid()
    {
        return $this->accountid;
    }
 
 
 public function  __toString(){return $this->contactname;}
 
}
Ma Account Entity:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
<?php
 
namespace Project\CRMBundle\Entity;
 
use Doctrine\ORM\Mapping as ORM;
 
/**
 * Account
 *
 * @ORM\Table(name="account")
 * @ORM\Entity
 */
class Account
{
    /**
     * @var integer
     *
     * @ORM\Column(name="ID", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;
 
 
    /**
     * @var \Contact
     *
     * @ORM\OneToMany(targetEntity="Contact", mappedBy="Account")
    
     */
    private $contactid;
 
    /**
     * @var string
     *
     * @ORM\Column(name="ACCOUNTNAME", type="string", length=50, nullable=false)
     */
    private $accountname;
 
    /**
     * @var float
     *
     * @ORM\Column(name="ACCOUNTPHONENUMBER1", type="decimal", nullable=false)
     */
    private $accountphonenumber1;
 
    /**
     * @var string
     *
     * @ORM\Column(name="ACCOUNTTYPE", type="string", nullable=false)
     */
    private $accounttype;
 
    /**
     * @var float
     *
     * @ORM\Column(name="ACCOUNTPHONENUMBER2", type="decimal", nullable=true)
     */
    private $accountphonenumber2;
 
    /**
     * @var string
     *
     * @ORM\Column(name="ACCOUNTEMAIL", type="string", length=50, nullable=true)
     */
    private $accountemail;
 
    /**
     * @var float
     *
     * @ORM\Column(name="ACCOUNTFAX", type="decimal", nullable=true)
     */
    private $accountfax;
 
    /**
     * @var string
     *
     * @ORM\Column(name="ACCOUNTWEB", type="string", length=50, nullable=true)
     */
    private $accountweb;
 
    /**
     * @var float
     *
     * @ORM\Column(name="COMMERCIALREGISTERID", type="decimal", nullable=true)
     */
    private $commercialregisterid;
 
    /**
     * @var float
     *
     * @ORM\Column(name="TAXNUMBER", type="decimal", nullable=true)
     */
    private $taxnumber;
 
    /**
     * @var float
     *
     * @ORM\Column(name="CUSTOMSCODE", type="decimal", nullable=true)
     */
    private $customscode;
 
    /**
     * @var string
     *
     * @ORM\Column(name="BANKNAME", type="string", length=50, nullable=true)
     */
    private $bankname;
 
    /**
     * @var float
     *
     * @ORM\Column(name="BANKACCOUNTNUMBER", type="decimal", nullable=true)
     */
    private $bankaccountnumber;
 
    /**
     * @var float
     *
     * @ORM\Column(name="VATCODE", type="decimal", nullable=true)
     */
    private $vatcode;
 
    /**
     * @var float
     *
     * @ORM\Column(name="CAPITAL", type="float", nullable=true)
     */
    private $capital;
 
    /**
     * @var string
     *
     * @ORM\Column(name="LOGO", type="string", length=500, nullable=true)
     */
    private $logo;
 
    /**
     * @var string
     *
     * @ORM\Column(name="NEXTPROSPECTSTEP", type="string", length=200, nullable=true)
     */
    private $nextprospectstep;
 
    /**
     * @var \Legalform
     *
     * @ORM\ManyToOne(targetEntity="Legalform")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="LEGALFORMID", referencedColumnName="ID")
     * })
     */
    private $legalformid;
 
    /**
     * @var \Businesssector
     *
     * @ORM\ManyToOne(targetEntity="Businesssector")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="BUSINESSSECTORID", referencedColumnName="ID")
     * })
     */
    private $businesssectorid;
 
 
 
    /**
     * @var \Account
     *
     * @ORM\ManyToOne(targetEntity="Account")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="FILIALNAME", referencedColumnName="ID")
     * })
     */
    private $filialname;
 
 
 
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }
 
    /**
     * Set accountname
     *
     * @param string $accountname
     * @return Account
     */
    public function setAccountname($accountname)
    {
        $this->accountname = $accountname;
 
        return $this;
    }
 
    /**
     * Get accountname
     *
     * @return string 
     */
    public function getAccountname()
    {
        return $this->accountname;
    }
 
    /**
     * Set accountphonenumber1
     *
     * @param float $accountphonenumber1
     * @return Account
     */
    public function setAccountphonenumber1($accountphonenumber1)
    {
        $this->accountphonenumber1 = $accountphonenumber1;
 
        return $this;
    }
 
    /**
     * Get accountphonenumber1
     *
     * @return float 
     */
    public function getAccountphonenumber1()
    {
        return $this->accountphonenumber1;
    }
 
    /**
     * Set accounttype
     *
     * @param string $accounttype
     * @return Account
     */
    public function setAccounttype($accounttype)
    {
        $this->accounttype = $accounttype;
 
        return $this;
    }
 
    /**
     * Get accounttype
     *
     * @return string 
     */
    public function getAccounttype()
    {
        return $this->accounttype;
    }
 
    /**
     * Set accountphonenumber2
     *
     * @param float $accountphonenumber2
     * @return Account
     */
    public function setAccountphonenumber2($accountphonenumber2)
    {
        $this->accountphonenumber2 = $accountphonenumber2;
 
        return $this;
    }
 
    /**
     * Get accountphonenumber2
     *
     * @return float 
     */
    public function getAccountphonenumber2()
    {
        return $this->accountphonenumber2;
    }
 
    /**
     * Set accountemail
     *
     * @param string $accountemail
     * @return Account
     */
    public function setAccountemail($accountemail)
    {
        $this->accountemail = $accountemail;
 
        return $this;
    }
 
    /**
     * Get accountemail
     *
     * @return string 
     */
    public function getAccountemail()
    {
        return $this->accountemail;
    }
 
    /**
     * Set accountfax
     *
     * @param float $accountfax
     * @return Account
     */
    public function setAccountfax($accountfax)
    {
        $this->accountfax = $accountfax;
 
        return $this;
    }
 
    /**
     * Get accountfax
     *
     * @return float 
     */
    public function getAccountfax()
    {
        return $this->accountfax;
    }
 
    /**
     * Set accountweb
     *
     * @param string $accountweb
     * @return Account
     */
    public function setAccountweb($accountweb)
    {
        $this->accountweb = $accountweb;
 
        return $this;
    }
 
    /**
     * Get accountweb
     *
     * @return string 
     */
    public function getAccountweb()
    {
        return $this->accountweb;
    }
 
    /**
     * Set commercialregisterid
     *
     * @param float $commercialregisterid
     * @return Account
     */
    public function setCommercialregisterid($commercialregisterid)
    {
        $this->commercialregisterid = $commercialregisterid;
 
        return $this;
    }
 
    /**
     * Get commercialregisterid
     *
     * @return float 
     */
    public function getCommercialregisterid()
    {
        return $this->commercialregisterid;
    }
 
    /**
     * Set taxnumber
     *
     * @param float $taxnumber
     * @return Account
     */
    public function setTaxnumber($taxnumber)
    {
        $this->taxnumber = $taxnumber;
 
        return $this;
    }
 
    /**
     * Get taxnumber
     *
     * @return float 
     */
    public function getTaxnumber()
    {
        return $this->taxnumber;
    }
 
    /**
     * Set customscode
     *
     * @param float $customscode
     * @return Account
     */
    public function setCustomscode($customscode)
    {
        $this->customscode = $customscode;
 
        return $this;
    }
 
    /**
     * Get customscode
     *
     * @return float 
     */
    public function getCustomscode()
    {
        return $this->customscode;
    }
 
    /**
     * Set bankname
     *
     * @param string $bankname
     * @return Account
     */
    public function setBankname($bankname)
    {
        $this->bankname = $bankname;
 
        return $this;
    }
 
    /**
     * Get bankname
     *
     * @return string 
     */
    public function getBankname()
    {
        return $this->bankname;
    }
 
    /**
     * Set bankaccountnumber
     *
     * @param float $bankaccountnumber
     * @return Account
     */
    public function setBankaccountnumber($bankaccountnumber)
    {
        $this->bankaccountnumber = $bankaccountnumber;
 
        return $this;
    }
 
    /**
     * Get bankaccountnumber
     *
     * @return float 
     */
    public function getBankaccountnumber()
    {
        return $this->bankaccountnumber;
    }
 
    /**
     * Set vatcode
     *
     * @param float $vatcode
     * @return Account
     */
    public function setVatcode($vatcode)
    {
        $this->vatcode = $vatcode;
 
        return $this;
    }
 
    /**
     * Get vatcode
     *
     * @return float 
     */
    public function getVatcode()
    {
        return $this->vatcode;
    }
 
    /**
     * Set capital
     *
     * @param float $capital
     * @return Account
     */
    public function setCapital($capital)
    {
        $this->capital = $capital;
 
        return $this;
    }
 
    /**
     * Get capital
     *
     * @return float 
     */
    public function getCapital()
    {
        return $this->capital;
    }
 
    /**
     * Set logo
     *
     * @param string $logo
     * @return Account
     */
    public function setLogo($logo)
    {
        $this->logo = $logo;
 
        return $this;
    }
 
    /**
     * Get logo
     *
     * @return string 
     */
    public function getLogo()
    {
        return $this->logo;
    }
 
    /**
     * Set nextprospectstep
     *
     * @param string $nextprospectstep
     * @return Account
     */
    public function setNextprospectstep($nextprospectstep)
    {
        $this->nextprospectstep = $nextprospectstep;
 
        return $this;
    }
 
    /**
     * Get nextprospectstep
     *
     * @return string 
     */
    public function getNextprospectstep()
    {
        return $this->nextprospectstep;
    }
 
    /**
     * Set legalformid
     *
     * @param \Project\CRMBundle\Entity\Legalform $legalformid
     * @return Account
     */
    public function setLegalformid(\Project\CRMBundle\Entity\Legalform $legalformid = null)
    {
        $this->legalformid = $legalformid;
 
        return $this;
    }
 
    /**
     * Get legalformid
     *
     * @return \Project\CRMBundle\Entity\Legalform 
     */
    public function getLegalformid()
    {
        return $this->legalformid;
    }
 
    /**
     * Set businesssectorid
     *
     * @param \Project\CRMBundle\Entity\Businesssector $businesssectorid
     * @return Account
     */
    public function setBusinesssectorid(\Project\CRMBundle\Entity\Businesssector $businesssectorid = null)
    {
        $this->businesssectorid = $businesssectorid;
 
        return $this;
    }
 
    /**
     * Get businesssectorid
     *
     * @return \Project\CRMBundle\Entity\Businesssector 
     */
    public function getBusinesssectorid()
    {
        return $this->businesssectorid;
    }
 
 
    /**
     * Set filialname
     *
     * @param \Project\CRMBundle\Entity\Account $filialname
     * @return Account
     */
    public function setFilialname(\Project\CRMBundle\Entity\Account $filialname = null)
    {
        $this->filialname = $filialname;
 
        return $this;
    }
 
    /**
     * Get filialname
     *
     * @return \Project\CRMBundle\Entity\Account 
     */
    public function getFilialname()
    {
        return $this->filialname;
    }
 
 
 
    /**
     * Set contactid
     *
     * @param \Project\CRMBundle\Entity\Contact $contactid
     * @return Contact
     */
    public function setContactid(\Project\CRMBundle\Entity\Contact $contactid = null)
    {
        $this->contactid = $contactid;
 
        return $this;
    }
 
    /**
     * Get contactid
     *
     * @return \Project\CRMBundle\Entity\Contact 
     */
    public function getContactid ()
    {
        return $this->contactid;
    }
 
 
 
 
    public function __toString()
    {return $this->accountname;}
}
Je ne sais pas quoi mettre dans mon show.html.twig de mon account pour que les contacts liés a cet account s'affichent??