by prettyscripts on 2010-05-21 10:39:38 • 3 comments »
php • symfony
in most of the projects i work on, when 'deleting' a record, it's preferred to mark it as deleted than actually deleting the record. this makes re-instating a record easier. the common practice is to add a status field to every record.
in doctrine, thi…
more »Tags: database, delete, doctrine, symfony
by prettyscripts on 2010-03-08 11:09:13 • 2 comments »
symfony
as of symfony 1.4 and if working with doctrine, there are still problem setting default and correct table encoding and collations with symfony doctrine:build task.
i have previously posted 2 solution. the 1st involves hacking the core code, which needs…
more »Tags: collation, database, doctrine, encoding, symfony
by prettyscripts on 2009-11-02 12:14:38 • 2 comments »
php • symfony
when working on symfony project it's common to run symfony doctrine:build-all (update - in V1.4 symfony doctrine:build --all) constantly. but after the command is run, the collation / encoding is changed to something that wasn’t used when the database wa…
more »Tags: collation, database, doctrine, encoding, php, symfony
by prettyscripts on 2009-05-30 14:33:48 • Leave a comment »
symfony
while developing a symfony project, it's usually required to rebuild database and reload data constantly with 'symfony doctrine:build-all' or 'symfony doctrine:build-all-load' constantly. when this is run, test data are wiped. the easy way is to have i…
more »Tags: data, database, dump, export, fixtures, framework, import, symfony