I'm not sure I exactly understand the
This whole thread gets to a problem I have had with DataMappers and PHP for some time. There is a real clash of priorities between them. DataMappers want to leave the domain objects free of database code, whilst PHP wants to make intelligent update decisions without keeping things in memory. The only way out seems to be some invasive watch on the getters and setters (decorators don't cut it) and hook them to keep track of the dirty status. That means Aspects.