phalcon-devtools
phalcon-devtools copied to clipboard
Duplicate Column maps when forcing model creation
if u do phalcon model {name} —force after changing something on the database it creates two column maps in the entity
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:
- I've created a table in a database
- I've created a model using force option (untill now everything is ok)
- (I am doing nothing with the database nor the model...)
- I've created model again using force option (since now we have column map duplicated)
- I've created model 3-rd time (since now a console communicate an error: "cannot redeclare.." a map)
Fixed in #392