sfguard - Symfony 1.4 - will "doctrine:build-model" destroy the data in the database? -


i bit new symfony. have encountered issue: unknown record property / related component "permissions" on "sfguarduser"

its solution mentioned there deleting files in lib/model/doctrine/base/. however, want know if going rebuild model, impact.

on page can see: http://oldforum.symfony-project.org/index.php/m/102097/ mentioned permanent fix delete these files fix schema. , build:model again.

so delete data in database? whats impact of doctrine:build command on symfony?

short answer: no, doctrine:build-model won't drop data in database. overwrite base model classes in lib/model/base , create model files if don't exist.

from sfdoctrinebuildtask class, doctrine:build "build" give in option. means "doctrine:build --model" same "doctrine:build-model". guess in many symfony 1.4 tutorials jobeet, use "doctrine:build --model"


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -