phalcon-devtools icon indicating copy to clipboard operation
phalcon-devtools copied to clipboard

Duplicate Column maps when forcing model creation

Open Slyvampy opened this issue 13 years ago • 2 comments

if u do phalcon model {name} —force after changing something on the database it creates two column maps in the entity

Slyvampy avatar Aug 21 '13 16:08 Slyvampy

Hi, I would like to add that this error occur and it does not matter if you change sth on the database or on the model file.

So to be clear, in my case it is like this:

  1. I've created a table in a database
  2. I've created a model using force option (untill now everything is ok)
  3. (I am doing nothing with the database nor the model...)
  4. I've created model again using force option (since now we have column map duplicated)
  5. I've created model 3-rd time (since now a console communicate an error: "cannot redeclare.." a map)

ug19 avatar Mar 24 '14 19:03 ug19

Fixed in #392

sergeyklay avatar May 11 '15 01:05 sergeyklay