Skip to content

No CollectionEvent on entity update  #12

@rico

Description

@rico

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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions