Never Mind. I already figured it out. EchoSQLLogger was enabled.


On Monday, June 26, 2017 at 1:46:11 PM UTC-3, Leopoldo Martín Suárez Pepe 
wrote:
>
> Hi, I recently installed Codeigniter 3 + Doctrine 2. 
>
> I spot a weir thing though, every time I issue some Doctrine command, it 
> gets echoed something in my view. As if it were a terminal, for example: 
>
> some controller.php:
>
>
>         $reg = new Entities\User;
>         $reg->setEmail("[email protected]");
>         $reg->setPassword("123456");
>         $reg->setActivo(true);
>         
>         $this->doctrine->em->getConnection()->beginTransaction();
>         $this->doctrine->em->persist($reg);
>         $this->doctrine->em->flush();
>         $this->doctrine->em->commit();
>
>         echo "OK";
>
> On screen I get the following output:
>
> "START TRANSACTION" INSERT INTO users (apellido, nombre, email, password, 
> activo, session, id_profile) VALUES (?, ?, ?, ?, ?, ?, ?) array(7) { [1]=> 
> string(0) "" [2]=> string(0) "" [3]=> string(13) "[email protected]" [4]=> 
> string(32) "ed94035907e5ee3da039684aa52fb8c3" [5]=> bool(true) [6]=> NULL 
> [7]=> NULL } array(7) { [1]=> string(6) "string" [2]=> string(6) "string" 
> [3]=> string(6) "string" [4]=> string(6) "string" [5]=> string(7) "boolean" 
> [6]=> string(6) "string" [7]=> string(7) "integer" } "COMMIT" OK
>
> Any ideas?
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to