Devtools behaving weirdly with field ending with "_mail"

Hi all,

I generate my models with devtools and everything is working fine, except for one field ending with _mail.

Each time i regenerate the models from the db, the field :

submit_mail

becomes :

$submit _mail

the devtools add a space before the underscore each time. Its not a big problem, but its weird.

Have you any idea about were it coming from ? and how can I fix it ?

thx in advance.



2.9k
edited Jan '17

Weird, I can't replicate it with the following setup.

CREATE TABLE `test` (
  `submit_mail` varchar(255) NOT NULL,
  PRIMARY KEY (`submit_mail`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8

Then running phalcon model test --mapcolumn --trace --doc --get-set.

What version of Phalcon are you running?



168

I can't replicate it too doing what you did, but still have the same problem on my current project ... crazy

Environment::
  PHP Version: 7.0.13-0ubuntu0.16.04.1
  PHP SAPI: cli

Versions::
  Phalcon DevTools Version: 3.0.4
  Phalcon Version: 3.0.3
  AdminLTE Version: 2.3.6

maybe I should fire xdebug to see whats happening step by step



2.9k

I can't replicate it too doing what you did, but still have the same problem on my current project ... crazy

``` Environment:: PHP Version: 7.0.13-0ubuntu0.16.04.1 PHP SAPI: cli

Versions:: Phalcon DevTools Version: 3.0.4 Phalcon Version: 3.0.3 AdminLTE Version: 2.3.6 ``` maybe I should fire xdebug to see whats happening step by step

Yeah, if you could give a step by step view on it with xdebug, that'll be handy