Ocramius / ChangeSet

:vhs: A simple changeset list that supports operations like insert/update/delete, event triggering, commits and rollbacks
MIT License
68 stars 9 forks source link

some arch feedback #2

Closed dbu closed 11 years ago

dbu commented 11 years ago

great initiative! the UoW is a really bloated uber-class in doctrine and i am always afraid when touching it.

this looks quite well to me. i wonder why you define ObjectManager and ObjectRepository and ObjectLoader? is that not already in doctrine commons? and does this need to be part of the UoW? i guess the UoW does have to interact with the actual loading and storing of the data. but the ObjectManager is on a layer above the UoW if i understand correctly. how do ObjectLoader and ObjectRepository interact?

should i also look at the open pull request? seems to be the place where we actually talk about calculating changesets...

if you could write a preliminary doc that explains how the library is used and what the entry points are, that would certainly help further understanding it...

Ocramius commented 11 years ago

@dbu just to make things a bit more clear, I didn't build this on top of doctrine/common, but just on top of my head while in the train with no connection

Ignore the open PR, gonna close it now. Preliminary docs is also a good idea, I'm waiting for others' feedback to see if this is a dead project first :P

dbu commented 11 years ago

thanks for the clarifications. it feels like a lot of classes - but ultimately i would expect this to be more understandable than just 3 monster classes (they only look simple until you open them :-)

Ocramius commented 11 years ago

Being handled in #8