IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Symfony PHP Discussion :

générer les entités de la base de données avec symfony2 [2.x]


Sujet :

Symfony PHP

  1. #141
    Membre éclairé
    Homme Profil pro
    Développeur Web
    Inscrit en
    Avril 2012
    Messages
    394
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Avril 2012
    Messages : 394
    Par défaut
    Ok explique moi comment as tu cette erreur ??

  2. #142
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Par défaut
    Bonjour ,
    j 'ai généré les fichiers ORM puis les entités comme on a vu puis j 'ai utilisé le crud
    et tout va bien lorsque j 'ai fait le test la première page ça marche les lorsque je clique sur Create a new entry
    elle m 'affiche cette erreur

  3. #143
    Membre éclairé
    Homme Profil pro
    Développeur Web
    Inscrit en
    Avril 2012
    Messages
    394
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Avril 2012
    Messages : 394
    Par défaut
    Je pense savoir qu'est ce qui ne va pas, les librairie vendor ne peuvent pas reconnaître le type du champ "date" que tu as mis tu peux me donner l'entité et le formulaire en question ??

  4. #144
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Par défaut
    l'entité
    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
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    734
    735
    736
    737
    738
    739
    740
    741
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    785
    786
    787
    788
    789
    790
    791
    792
    793
    794
    795
    796
    797
    798
    799
    800
    801
    802
    803
    804
    805
    806
    807
    808
    809
    810
    811
    812
    813
    814
    815
    816
    817
    818
    819
    820
    821
    822
    823
    824
    825
    826
    827
    828
    829
    830
    831
    832
    833
    834
    835
    836
    837
    838
    839
    840
    841
    842
    843
    844
    845
    846
    847
    848
    849
    850
    851
    852
    853
    854
    855
    856
    857
    858
    859
    860
    861
    862
    863
    864
    865
    866
    867
    868
    869
    870
    871
    872
    873
    874
    875
    876
    877
    878
    879
    880
    881
    882
    883
    884
    <?php
     
    namespace MyApp\emploiBundle\Entity;
     
    use Doctrine\ORM\Mapping as ORM;
     
    /**
     * MyApp\emploiBundle\Entity\PvJobCandCoordonnees
     *
     * @ORM\Table(name="pv__job_cand_coordonnees")
     * @ORM\Entity
     */
    class PvJobCandCoordonnees
    {
        /**
         * @var integer $id
         *
         * @ORM\Column(name="id", type="integer", nullable=false)
         * @ORM\Id
         * @ORM\GeneratedValue(strategy="IDENTITY")
         */
        private $id;
     
        /**
         * @var string $codeCryptCand
         *
         * @ORM\Column(name="code_crypt_cand", type="string", length=254, nullable=true)
         */
        private $codeCryptCand;
     
        /**
         * @var string $sexeCand
         *
         * @ORM\Column(name="sexe_cand", type="string", length=254, nullable=true)
         */
        private $sexeCand;
     
        /**
         * @var string $nomCand
         *
         * @ORM\Column(name="nom_cand", type="string", length=254, nullable=true)
         */
        private $nomCand;
     
        /**
         * @var string $prenomCand
         *
         * @ORM\Column(name="prenom_cand", type="string", length=254, nullable=true)
         */
        private $prenomCand;
     
        /**
         * @var datetime $dateNaissCand
         *
         * @ORM\Column(name="date_naiss_cand", type="datetime", nullable=true)
         */
        private $dateNaissCand;
     
        /**
         * @var string $etatCivilCand
         *
         * @ORM\Column(name="etat_civil_cand", type="string", length=254, nullable=true)
         */
        private $etatCivilCand;
     
        /**
         * @var string $adrCand
         *
         * @ORM\Column(name="adr_cand", type="string", length=254, nullable=true)
         */
        private $adrCand;
     
        /**
         * @var string $villeCand
         *
         * @ORM\Column(name="ville_cand", type="string", length=254, nullable=true)
         */
        private $villeCand;
     
        /**
         * @var string $gouvCand
         *
         * @ORM\Column(name="gouv_cand", type="string", length=254, nullable=true)
         */
        private $gouvCand;
     
        /**
         * @var string $codePostalCand
         *
         * @ORM\Column(name="code_postal_cand", type="string", length=254, nullable=true)
         */
        private $codePostalCand;
     
        /**
         * @var string $paysCand
         *
         * @ORM\Column(name="pays_cand", type="string", length=254, nullable=true)
         */
        private $paysCand;
     
        /**
         * @var string $tel1Cand
         *
         * @ORM\Column(name="tel1_cand", type="string", length=254, nullable=true)
         */
        private $tel1Cand;
     
        /**
         * @var string $tel2Cand
         *
         * @ORM\Column(name="tel2_cand", type="string", length=254, nullable=true)
         */
        private $tel2Cand;
     
        /**
         * @var string $cellCand
         *
         * @ORM\Column(name="cell_cand", type="string", length=254, nullable=true)
         */
        private $cellCand;
     
        /**
         * @var string $courrierCand
         *
         * @ORM\Column(name="courrier_cand", type="string", length=254, nullable=true)
         */
        private $courrierCand;
     
        /**
         * @var string $courrierActivationCand
         *
         * @ORM\Column(name="courrier_activation_cand", type="string", length=254, nullable=true)
         */
        private $courrierActivationCand;
     
        /**
         * @var string $urlCand
         *
         * @ORM\Column(name="url_cand", type="string", length=254, nullable=true)
         */
        private $urlCand;
     
        /**
         * @var string $niveauCarriereCand
         *
         * @ORM\Column(name="niveau_carriere_cand", type="string", length=254, nullable=true)
         */
        private $niveauCarriereCand;
     
        /**
         * @var datetime $dateDispCand
         *
         * @ORM\Column(name="date_disp_cand", type="datetime", nullable=true)
         */
        private $dateDispCand;
     
        /**
         * @var integer $etatDossierCand
         *
         * @ORM\Column(name="etat_dossier_cand", type="integer", nullable=true)
         */
        private $etatDossierCand;
     
        /**
         * @var datetime $dateDernierAccesCandOld
         *
         * @ORM\Column(name="date_dernier_acces_cand_old", type="datetime", nullable=true)
         */
        private $dateDernierAccesCandOld;
     
        /**
         * @var datetime $dateDernierAccesCand
         *
         * @ORM\Column(name="date_dernier_acces_cand", type="datetime", nullable=true)
         */
        private $dateDernierAccesCand;
     
        /**
         * @var datetime $dateDernierMail
         *
         * @ORM\Column(name="date_dernier_mail", type="datetime", nullable=true)
         */
        private $dateDernierMail;
     
        /**
         * @var integer $codeMailingList
         *
         * @ORM\Column(name="code_mailing_list", type="integer", nullable=true)
         */
        private $codeMailingList;
     
        /**
         * @var integer $codeDernierEmailJournalier
         *
         * @ORM\Column(name="code_dernier_email_journalier", type="integer", nullable=true)
         */
        private $codeDernierEmailJournalier;
     
        /**
         * @var integer $receptionMailing
         *
         * @ORM\Column(name="reception_mailing", type="integer", nullable=true)
         */
        private $receptionMailing;
     
        /**
         * @var string $codeClient
         *
         * @ORM\Column(name="code_client", type="string", length=254, nullable=true)
         */
        private $codeClient;
     
        /**
         * @var PvTousAuthentification
         *
         * @ORM\ManyToOne(targetEntity="PvTousAuthentification")
         * @ORM\JoinColumns({
         *   @ORM\JoinColumn(name="pv__id2", referencedColumnName="id")
         * })
         */
        private $pv2;
     
        /**
         * @var PvJobLstEtatCivil
         *
         * @ORM\ManyToOne(targetEntity="PvJobLstEtatCivil")
         * @ORM\JoinColumns({
         *   @ORM\JoinColumn(name="pv__id", referencedColumnName="id")
         * })
         */
        private $pv;
     
        /**
         * @var PvJobAdminListeMail
         *
         * @ORM\ManyToOne(targetEntity="PvJobAdminListeMail")
         * @ORM\JoinColumns({
         *   @ORM\JoinColumn(name="pv__id3", referencedColumnName="id")
         * })
         */
        private $pv3;
     
        /**
         * @var PvJobLstPays
         *
         * @ORM\ManyToOne(targetEntity="PvJobLstPays")
         * @ORM\JoinColumns({
         *   @ORM\JoinColumn(name="pv__id4", referencedColumnName="id")
         * })
         */
        private $pv4;
     
     
     
        /**
         * Get id
         *
         * @return integer 
         */
        public function getId()
        {
            return $this->id;
        }
     
        /**
         * Set codeCryptCand
         *
         * @param string $codeCryptCand
         */
        public function setCodeCryptCand($codeCryptCand)
        {
            $this->codeCryptCand = $codeCryptCand;
        }
     
        /**
         * Get codeCryptCand
         *
         * @return string 
         */
        public function getCodeCryptCand()
        {
            return $this->codeCryptCand;
        }
     
        /**
         * Set sexeCand
         *
         * @param string $sexeCand
         */
        public function setSexeCand($sexeCand)
        {
            $this->sexeCand = $sexeCand;
        }
     
        /**
         * Get sexeCand
         *
         * @return string 
         */
        public function getSexeCand()
        {
            return $this->sexeCand;
        }
     
        /**
         * Set nomCand
         *
         * @param string $nomCand
         */
        public function setNomCand($nomCand)
        {
            $this->nomCand = $nomCand;
        }
     
        /**
         * Get nomCand
         *
         * @return string 
         */
        public function getNomCand()
        {
            return $this->nomCand;
        }
     
        /**
         * Set prenomCand
         *
         * @param string $prenomCand
         */
        public function setPrenomCand($prenomCand)
        {
            $this->prenomCand = $prenomCand;
        }
     
        /**
         * Get prenomCand
         *
         * @return string 
         */
        public function getPrenomCand()
        {
            return $this->prenomCand;
        }
     
        /**
         * Set dateNaissCand
         *
         * @param datetime $dateNaissCand
         */
        public function setDateNaissCand($dateNaissCand)
        {
            $this->dateNaissCand = $dateNaissCand;
        }
     
        /**
         * Get dateNaissCand
         *
         * @return datetime 
         */
        public function getDateNaissCand()
        {
            return $this->dateNaissCand;
        }
     
        /**
         * Set etatCivilCand
         *
         * @param string $etatCivilCand
         */
        public function setEtatCivilCand($etatCivilCand)
        {
            $this->etatCivilCand = $etatCivilCand;
        }
     
        /**
         * Get etatCivilCand
         *
         * @return string 
         */
        public function getEtatCivilCand()
        {
            return $this->etatCivilCand;
        }
     
        /**
         * Set adrCand
         *
         * @param string $adrCand
         */
        public function setAdrCand($adrCand)
        {
            $this->adrCand = $adrCand;
        }
     
        /**
         * Get adrCand
         *
         * @return string 
         */
        public function getAdrCand()
        {
            return $this->adrCand;
        }
     
        /**
         * Set villeCand
         *
         * @param string $villeCand
         */
        public function setVilleCand($villeCand)
        {
            $this->villeCand = $villeCand;
        }
     
        /**
         * Get villeCand
         *
         * @return string 
         */
        public function getVilleCand()
        {
            return $this->villeCand;
        }
     
        /**
         * Set gouvCand
         *
         * @param string $gouvCand
         */
        public function setGouvCand($gouvCand)
        {
            $this->gouvCand = $gouvCand;
        }
     
        /**
         * Get gouvCand
         *
         * @return string 
         */
        public function getGouvCand()
        {
            return $this->gouvCand;
        }
     
        /**
         * Set codePostalCand
         *
         * @param string $codePostalCand
         */
        public function setCodePostalCand($codePostalCand)
        {
            $this->codePostalCand = $codePostalCand;
        }
     
        /**
         * Get codePostalCand
         *
         * @return string 
         */
        public function getCodePostalCand()
        {
            return $this->codePostalCand;
        }
     
        /**
         * Set paysCand
         *
         * @param string $paysCand
         */
        public function setPaysCand($paysCand)
        {
            $this->paysCand = $paysCand;
        }
     
        /**
         * Get paysCand
         *
         * @return string 
         */
        public function getPaysCand()
        {
            return $this->paysCand;
        }
     
        /**
         * Set tel1Cand
         *
         * @param string $tel1Cand
         */
        public function setTel1Cand($tel1Cand)
        {
            $this->tel1Cand = $tel1Cand;
        }
     
        /**
         * Get tel1Cand
         *
         * @return string 
         */
        public function getTel1Cand()
        {
            return $this->tel1Cand;
        }
     
        /**
         * Set tel2Cand
         *
         * @param string $tel2Cand
         */
        public function setTel2Cand($tel2Cand)
        {
            $this->tel2Cand = $tel2Cand;
        }
     
        /**
         * Get tel2Cand
         *
         * @return string 
         */
        public function getTel2Cand()
        {
            return $this->tel2Cand;
        }
     
        /**
         * Set cellCand
         *
         * @param string $cellCand
         */
        public function setCellCand($cellCand)
        {
            $this->cellCand = $cellCand;
        }
     
        /**
         * Get cellCand
         *
         * @return string 
         */
        public function getCellCand()
        {
            return $this->cellCand;
        }
     
        /**
         * Set courrierCand
         *
         * @param string $courrierCand
         */
        public function setCourrierCand($courrierCand)
        {
            $this->courrierCand = $courrierCand;
        }
     
        /**
         * Get courrierCand
         *
         * @return string 
         */
        public function getCourrierCand()
        {
            return $this->courrierCand;
        }
     
        /**
         * Set courrierActivationCand
         *
         * @param string $courrierActivationCand
         */
        public function setCourrierActivationCand($courrierActivationCand)
        {
            $this->courrierActivationCand = $courrierActivationCand;
        }
     
        /**
         * Get courrierActivationCand
         *
         * @return string 
         */
        public function getCourrierActivationCand()
        {
            return $this->courrierActivationCand;
        }
     
        /**
         * Set urlCand
         *
         * @param string $urlCand
         */
        public function setUrlCand($urlCand)
        {
            $this->urlCand = $urlCand;
        }
     
        /**
         * Get urlCand
         *
         * @return string 
         */
        public function getUrlCand()
        {
            return $this->urlCand;
        }
     
        /**
         * Set niveauCarriereCand
         *
         * @param string $niveauCarriereCand
         */
        public function setNiveauCarriereCand($niveauCarriereCand)
        {
            $this->niveauCarriereCand = $niveauCarriereCand;
        }
     
        /**
         * Get niveauCarriereCand
         *
         * @return string 
         */
        public function getNiveauCarriereCand()
        {
            return $this->niveauCarriereCand;
        }
     
        /**
         * Set dateDispCand
         *
         * @param datetime $dateDispCand
         */
        public function setDateDispCand($dateDispCand)
        {
            $this->dateDispCand = $dateDispCand;
        }
     
        /**
         * Get dateDispCand
         *
         * @return datetime 
         */
        public function getDateDispCand()
        {
            return $this->dateDispCand;
        }
     
        /**
         * Set etatDossierCand
         *
         * @param integer $etatDossierCand
         */
        public function setEtatDossierCand($etatDossierCand)
        {
            $this->etatDossierCand = $etatDossierCand;
        }
     
        /**
         * Get etatDossierCand
         *
         * @return integer 
         */
        public function getEtatDossierCand()
        {
            return $this->etatDossierCand;
        }
     
        /**
         * Set dateDernierAccesCandOld
         *
         * @param datetime $dateDernierAccesCandOld
         */
        public function setDateDernierAccesCandOld($dateDernierAccesCandOld)
        {
            $this->dateDernierAccesCandOld = $dateDernierAccesCandOld;
        }
     
        /**
         * Get dateDernierAccesCandOld
         *
         * @return datetime 
         */
        public function getDateDernierAccesCandOld()
        {
            return $this->dateDernierAccesCandOld;
        }
     
        /**
         * Set dateDernierAccesCand
         *
         * @param datetime $dateDernierAccesCand
         */
        public function setDateDernierAccesCand($dateDernierAccesCand)
        {
            $this->dateDernierAccesCand = $dateDernierAccesCand;
        }
     
        /**
         * Get dateDernierAccesCand
         *
         * @return datetime 
         */
        public function getDateDernierAccesCand()
        {
            return $this->dateDernierAccesCand;
        }
     
        /**
         * Set dateDernierMail
         *
         * @param datetime $dateDernierMail
         */
        public function setDateDernierMail($dateDernierMail)
        {
            $this->dateDernierMail = $dateDernierMail;
        }
     
        /**
         * Get dateDernierMail
         *
         * @return datetime 
         */
        public function getDateDernierMail()
        {
            return $this->dateDernierMail;
        }
     
        /**
         * Set codeMailingList
         *
         * @param integer $codeMailingList
         */
        public function setCodeMailingList($codeMailingList)
        {
            $this->codeMailingList = $codeMailingList;
        }
     
        /**
         * Get codeMailingList
         *
         * @return integer 
         */
        public function getCodeMailingList()
        {
            return $this->codeMailingList;
        }
     
        /**
         * Set codeDernierEmailJournalier
         *
         * @param integer $codeDernierEmailJournalier
         */
        public function setCodeDernierEmailJournalier($codeDernierEmailJournalier)
        {
            $this->codeDernierEmailJournalier = $codeDernierEmailJournalier;
        }
     
        /**
         * Get codeDernierEmailJournalier
         *
         * @return integer 
         */
        public function getCodeDernierEmailJournalier()
        {
            return $this->codeDernierEmailJournalier;
        }
     
        /**
         * Set receptionMailing
         *
         * @param integer $receptionMailing
         */
        public function setReceptionMailing($receptionMailing)
        {
            $this->receptionMailing = $receptionMailing;
        }
     
        /**
         * Get receptionMailing
         *
         * @return integer 
         */
        public function getReceptionMailing()
        {
            return $this->receptionMailing;
        }
     
        /**
         * Set codeClient
         *
         * @param string $codeClient
         */
        public function setCodeClient($codeClient)
        {
            $this->codeClient = $codeClient;
        }
     
        /**
         * Get codeClient
         *
         * @return string 
         */
        public function getCodeClient()
        {
            return $this->codeClient;
        }
     
        /**
         * Set pv2
         *
         * @param MyApp\emploiBundle\Entity\PvTousAuthentification $pv2
         */
        public function setPv2(\MyApp\emploiBundle\Entity\PvTousAuthentification $pv2)
        {
            $this->pv2 = $pv2;
        }
     
        /**
         * Get pv2
         *
         * @return MyApp\emploiBundle\Entity\PvTousAuthentification 
         */
        public function getPv2()
        {
            return $this->pv2;
        }
     
        /**
         * Set pv
         *
         * @param MyApp\emploiBundle\Entity\PvJobLstEtatCivil $pv
         */
        public function setPv(\MyApp\emploiBundle\Entity\PvJobLstEtatCivil $pv)
        {
            $this->pv = $pv;
        }
     
        /**
         * Get pv
         *
         * @return MyApp\emploiBundle\Entity\PvJobLstEtatCivil 
         */
        public function getPv()
        {
            return $this->pv;
        }
     
        /**
         * Set pv3
         *
         * @param MyApp\emploiBundle\Entity\PvJobAdminListeMail $pv3
         */
        public function setPv3(\MyApp\emploiBundle\Entity\PvJobAdminListeMail $pv3)
        {
            $this->pv3 = $pv3;
        }
     
        /**
         * Get pv3
         *
         * @return MyApp\emploiBundle\Entity\PvJobAdminListeMail 
         */
        public function getPv3()
        {
            return $this->pv3;
        }
     
        /**
         * Set pv4
         *
         * @param MyApp\emploiBundle\Entity\PvJobLstPays $pv4
         */
        public function setPv4(\MyApp\emploiBundle\Entity\PvJobLstPays $pv4)
        {
            $this->pv4 = $pv4;
        }
     
        /**
         * Get pv4
         *
         * @return MyApp\emploiBundle\Entity\PvJobLstPays 
         */
        public function getPv4()
        {
            return $this->pv4;
        }
    }
    la form
    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
    <?php
     
    namespace MyApp\emploiBundle\Form;
     
    use Symfony\Component\Form\AbstractType;
    use Symfony\Component\Form\FormBuilder;
     
    class PvJobCandCoordonneesType extends AbstractType
    {
        public function buildForm(FormBuilder $builder, array $options)
        {
            $builder
                ->add('codeCryptCand')
                ->add('sexeCand')
                ->add('nomCand')
                ->add('prenomCand')
                ->add('dateNaissCand')
                ->add('etatCivilCand')
                ->add('adrCand')
                ->add('villeCand')
                ->add('gouvCand')
                ->add('codePostalCand')
                ->add('paysCand')
                ->add('tel1Cand')
                ->add('tel2Cand')
                ->add('cellCand')
                ->add('courrierCand')
                ->add('courrierActivationCand')
                ->add('urlCand')
                ->add('niveauCarriereCand')
                ->add('dateDispCand')
                ->add('etatDossierCand')
                ->add('dateDernierAccesCandOld')
                ->add('dateDernierAccesCand')
                ->add('dateDernierMail')
                ->add('codeMailingList')
                ->add('codeDernierEmailJournalier')
                ->add('receptionMailing')
                ->add('codeClient')
                ->add('pv2')
                ->add('pv')
                ->add('pv3')
                ->add('pv4')
            ;
        }
     
        public function getName()
        {
            return 'myapp_emploibundle_pvjobcandcoordonneestype';
        }
    }

  5. #145
    Membre éclairé
    Homme Profil pro
    Développeur Web
    Inscrit en
    Avril 2012
    Messages
    394
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Avril 2012
    Messages : 394
    Par défaut
    Ok j'ai vu a priori, n y avait pas de soucis concernant ton type Date , essaye de vider le cache :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    php app/console cache:clear
    As tu une version du framework avec les vendor ou sans les vendor?

  6. #146
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Par défaut
    avec le vendor

  7. #147
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Par défaut
    j 'ai tapé
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    php app/console cache:clear
    mais même problème

  8. #148
    Membre éclairé
    Homme Profil pro
    Développeur Web
    Inscrit en
    Avril 2012
    Messages
    394
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Avril 2012
    Messages : 394
    Par défaut
    Moi a ta place j'aurais fait le type : "date" tout court
    essaye de modifier ton formulaire :
    Chaque champ de type "datetime" tu met ceci :

    exemple : dateNaissCand remplace dans
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    public function buildForm(FormBuilder $builder, array $options)
    par :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    {
            $builder
                ->add('dateNaissCand', 'datetime', array(
                'date_widget' => 'single_text',
                'time_widget' => 'single_text',
                'date_format' => 'yyyy-MM-dd',
                'with_seconds' => true
            ));
        }
    et juste en bas de :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    public function getName()
        {
            return 'myapp_emploibundle_pvjobcandcoordonneestype';
        }
    :
    ajoute cette méthode :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
      public function getDefaultOptions(array $options)
        {
            return array(
                'data' => array('dateNaissCand' => new \DateTime())
            );
        }
    Refais ca pour tous les champ de type datetime

  9. #149
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Par défaut
    je sais pas quelle est le problème j 'ai répété tout de le début mais la même chose
    hier tout ca marche et les même étapes

  10. #150
    Expert confirmé

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Par défaut
    installe Intl et ça sera réglé ...
    Et cherche avant de demandé comment on fait

  11. #151
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Par défaut
    j 'ai rien trouvé
    j 'ai désinstallé tout et j'ai répété mais le même problème
    je sais pas ou est le problème hier ça marche bien

  12. #152
    Expert confirmé

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Par défaut
    Citation Envoyé par marwazmandar Voir le message
    j 'ai rien trouvé
    j 'ai désinstallé tout et j'ai répété mais le même problème
    je sais pas ou est le problème hier ça marche bien
    C'est ton métier ?

  13. #153
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Par défaut
    oui

  14. #154
    Expert confirmé

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Par défaut
    Citation Envoyé par marwazmandar Voir le message
    oui
    donc on fait ton boulot

  15. #155
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Par défaut
    offfffff ma tête est cassé

  16. #156
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Par défaut
    qui a une solution pour cette erreur

  17. #157
    Membre éclairé
    Homme Profil pro
    Développeur Web
    Inscrit en
    Avril 2012
    Messages
    394
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Avril 2012
    Messages : 394
    Par défaut
    dis est ce que ca ne fonctionne pas uniquement pour Create a new entry ?? c'est tu clique sur Edit ? ca donne la même chose ?

  18. #158
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Par défaut
    merci pour vous j 'ai résolu le problème cava

+ Répondre à la discussion
Cette discussion est résolue.
Page 8 sur 8 PremièrePremière ... 45678

Discussions similaires

  1. [Debutant] Lister les tables d'une base de données
    Par Konrad Florczak dans le forum Langage SQL
    Réponses: 2
    Dernier message: 06/07/2005, 16h24
  2. Réponses: 4
    Dernier message: 29/11/2004, 16h51
  3. Connaitre les infos de la base de données
    Par cedric31 dans le forum Bases de données
    Réponses: 3
    Dernier message: 06/07/2004, 12h59
  4. les images dans une base de données
    Par houhou dans le forum Bases de données
    Réponses: 8
    Dernier message: 22/06/2004, 14h27
  5. Quel Outil pour les applis Industrielles ET bases de données
    Par ThierryAIM dans le forum Débats sur le développement - Le Best Of
    Réponses: 8
    Dernier message: 23/04/2003, 09h14

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo