Re: [symfony-users] check in model class if it is used from doctrine:data-load task

2009-12-07 Thread Georg Gell
Hi, interesting approach, thanks, I would never have thought of this :-/ Is there a way to implement the creation of the fictive is_import column automatically in the dump when doing the task doctrine:data-dump? Georg Alexandre Salomé schrieb: You shouldn't handle the question like this...

Re: [symfony-users] check in model class if it is used from doctrine:data-load task

2009-12-07 Thread Alexandre Salomé
Maybe the toArray method must be overriden. Not sure, Alexandre 2009/12/7 Georg Gell geor...@have2.com Hi, interesting approach, thanks, I would never have thought of this :-/ Is there a way to implement the creation of the fictive is_import column automatically in the dump when doing the

Re: [symfony-users] check in model class if it is used from doctrine:data-load task

2009-12-06 Thread Alexandre Salomé
You shouldn't handle the question like this... A proper way : In your fixtures, add a fictive column : is_import For example : myModel: mm_01: name: Bobby is_active: true is_import: true In your class, add : protected $isImport = false; public function setIsImport($value) {

[symfony-users] check in model class if it is used from doctrine:data-load task

2009-12-04 Thread Georg Gell
Hello group, how can I check in a model class if the class is used from the doctrine:data-load task instead from the normal application? Example model Model class Model extends BaseModel { public function postInsert($event) { if (not in symfony doctrine:data-load){ //do some wild things that