I'm getting used to DDD so don't assume I'm a DDD pro yet. I'm trying to implement a hexagonal architecture using the CakePHP framework in a completely custom made application that just utilizes the framework but doesn't built something based on the app skeleton it has. CakePHP is using the data mapper pattern, not active record as most people assume.
After reading a lot it seems to me that the table objects in CakePHP and the entities represent already what I'm after for my domain layer?
- It appears that entities in the ORM are already my value objects I want in my domain layer?
- It appears that, for example the table objects, implement already a repository interface and also act as aggregates by defining the associations to other tables
That's at least what I think. My question is now if my assumption about this is true?