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...
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
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)
{
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