phalcon / phalcon-devtools

Phalcon Developer Tools
https://docs.phalcon.io/latest/en/devtools
Other
1.33k stars 630 forks source link

ISSUE-1317: Fix model --force creation bugs #1498

Closed BeMySlaveDarlin closed 3 years ago

BeMySlaveDarlin commented 3 years ago

Hello!

In raising this pull request, I confirm the following (please check boxes):

Small description of change: Fixed constants dropping in models when recreating with --force option: constants with access modifiers (public, protected, private) were ignored by preg_match pattern. Fixed attributes duplication bug when recreating with --force option if no --camelize option declared and property is snake_cased. Fixed column mapping on creation from table with PascalCase fields.

Thanks

codecov[bot] commented 3 years ago

Codecov Report

Merging #1498 (e249db0) into 4.0.x (e75d332) will increase coverage by 0.01%. The diff coverage is 0.00%.

@@           Coverage Diff            @@
##           4.0.x   #1498      +/-   ##
========================================
+ Coverage   3.15%   3.16%   +0.01%     
========================================
  Files        111     111              
  Lines       5106    5079      -27     
========================================
  Hits         161     161              
+ Misses      4945    4918      -27