-
Notifications
You must be signed in to change notification settings - Fork 3
Description
It seems that no CollectionEvent of type "update" is dispatched when a entity property is updated:
repository.entities.addEventListener(CollectionEvent.COLLECTION_CHANGE, collectionChangeHandler )
private function collectionChangeHandler(e:CollectionEvent):void
{
trace("change => " + e.kind);
}
When adding/persisting an entity:
[INFO] org.davekeen.flextrine.orm.EntityRepository Adding [NestCheckEntity id=null] {repository=NestCheckEntity, tempUid=49FE954D-61CA-1D9B-DABC-4F40A1A67FD0}
change => add
[INFO] org.davekeen.flextrine.orm.EntityManager Persisting [NestCheckEntity id=null]
change => refresh
Updating a property:
[INFO] org.davekeen.flextrine.orm.EntityRepository Detected change on managed entity [NestCheckEntity id=null] - property 'checkdate' from 'Tue Apr 5 00:00:00 GMT+0200 2011' to 'Mon Apr 11 00:00:00 GMT+0200 2011' {repository = NestCheckEntity}