diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/Registration.php b/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/Registration.php index 8f2cf950..da1d011a 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/Registration.php +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/Registration.php @@ -27,10 +27,10 @@ class Registration implements UserInterface, \Serializable private $id; /** - * @ORM\Column(type="string", length=25, unique=true) + * @ORM\Column(type="string", length=128, unique=true) * @Assert\Length( * min = "5", - * max = "25", + * max = "128", * minMessage = "Votre nom doit faire au moins {{ limit }} caractères", * maxMessage = "Votre nom ne peut pas être plus long que {{ limit }} caractères" * ) @@ -68,7 +68,7 @@ class Registration implements UserInterface, \Serializable private $passwordad; /** - * @ORM\Column(type="string", length=60, unique=true) + * @ORM\Column(type="string", length=128, unique=true) */ private $email; diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/User.php b/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/User.php index 5cea9d96..d9df2f7d 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/User.php +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Entity/User.php @@ -30,10 +30,10 @@ class User implements UserInterface, \Serializable private $id; /** - * @ORM\Column(type="string", length=50, unique=true) + * @ORM\Column(type="string", length=128, unique=true) * @Assert\Length( * min = "5", - * max = "25", + * max = "128", * minMessage = "Votre nom doit faire au moins {{ limit }} caractères", * maxMessage = "Votre nom ne peut pas être plus long que {{ limit }} caractères" * ) @@ -71,7 +71,7 @@ class User implements UserInterface, \Serializable private $passwordad; /** - * @ORM\Column(type="string", length=60, unique=true) + * @ORM\Column(type="string", length=128, unique=true) */ private $email; diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/GetLimesurveyCommand.php b/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/GetLimesurveyCommand.php index e1379ad1..1b464a33 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/GetLimesurveyCommand.php +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/GetLimesurveyCommand.php @@ -407,6 +407,7 @@ class GetLimesurveyCommand extends Command foreach($surveys as $survey) { // Si le sondage est actif if($survey["active"]=="Y") { + $this->writeln("SURVEY = ".$survey["surveyls_title"]); // Liste des participants $survey_id=$survey["sid"]; @@ -415,6 +416,8 @@ class GetLimesurveyCommand extends Command foreach($users as $user) { if(isset($user["participant_info"]["email"]) && $user["participant_info"]["email"]!="") { + $this->writeln("EMAIL = ".$user["participant_info"]["email"]); + $entity = $this->em->getRepository('CadolesCoreBundle:User')->findOneBy(["email"=>$user["participant_info"]["email"]]); if($entity) { $surveypropconf = $myJSONRPCClient->get_survey_properties($sessionKey,$survey["sid"],["datecreated"]);