Hi everyone,
I’m trying to insert a new contact into my database. I got the error you can see below. If I copy the sql request, putting it into MMSQL studio management, new line is inserted.
That’s the only one insert request which is bugging through the whole php system.
$newContact->CT_Num = $CT_Num->CpteAuxiliaire;
$newContact->CT_Nom = $utilisateurs[$i]->civilite.' '.$utilisateurs[$i]->nomUtilisateur;
$newContact->CT_Prenom = $utilisateurs[$i]->prenomUtilisateur;
$newContact->CT_EMail = $utilisateurs[$i]->emailUtilisateur;
$newContact->CT_Telephone = $utilisateurs[$i]->telephoneUtilisateur;
$newContact->Actif = true;
$newContact->Societe = 'AIG';
$newContact->PersModif = 'Inter';
if(YII_ENV_PROD)
$newContact->DateModif = Yii::$app->dateHandler->convert2Ymd($interForm->dateFormation);
else
$newContact->DateModif = $interForm->dateFormation;
// Je l'enregistre
$newContact->save();
Regards