simplethings/EntityAudit — Issue #2: getOriginalEntityData seems to return the new data
Author: keesschepers
Created: 2011-10-26 13:05:58+00:00
State: open

I'm trying to use this EntityAudit extension and i'm forking it for using it in a Zend Framework application. But there seems to be one problem, in the Entity_audit table the LogRevisionsListener writes the NEW data into the table and that's not what you want.

I either think that this wasn't ment to because when a audited entity gets updated I see $this->uow->getOriginalEntityData() which you would expect to original data is returned but that's not the case.

I'm trying to debug this but in the UnitOfWork class $this->originalEntityData[$oid] is changed many times so it's hard to find where this happends.

Are you familiair with this problem? Is there already a fix?

I'm using Doctrine 2.1.2 with Zend Framework glued with Bisna.