martianboy / IranERP

1 stars 1 forks source link

$em var in CrudResponder.php #2

Closed msdmazarei closed 13 years ago

msdmazarei commented 13 years ago

in all function ,it must check if $em is null then set $em=yii->doctrine->EntityManager

martianboy commented 13 years ago

Why do we need $em argument in those functions anyway? Ahh, but I can foresee your answer: 'Generalization! We might have multiple entity managers!'