- Original Poster
- #1
Hi
Its been a while since I dabbled with Zend, but I have recently picked it up again. I know a few Zend Framework gurus frequent these forums!
I've set up ZF 1 with Doctrine 2 (using Guilherme Blanco as the glue to hold it all together).
The MVC pattern suggests using 'thin controllers' and 'fat models'.
Where are you supposed to place your business logic with a ZF1 and Doctrine 2 setup?
Placing the logic in the Doctrine 2 Entities or extending them does not seem correct.
A ZF presentation suggests that the business logic should be placed in a service layer. Does anyone know any decent examples showing how this can be done with Doctrine 2?
I'm kind unclear of the difference between models and services in Zend. Do you create models (with your core business logic) and then link these somehow to services (for accessing the Doctrine 2 entities)?
Or do you perhaps consider the stack - ORM mapper, entities, service layer collectively as a model itself?
Cheers
Al
Its been a while since I dabbled with Zend, but I have recently picked it up again. I know a few Zend Framework gurus frequent these forums!
I've set up ZF 1 with Doctrine 2 (using Guilherme Blanco as the glue to hold it all together).
The MVC pattern suggests using 'thin controllers' and 'fat models'.
Where are you supposed to place your business logic with a ZF1 and Doctrine 2 setup?
Placing the logic in the Doctrine 2 Entities or extending them does not seem correct.
A ZF presentation suggests that the business logic should be placed in a service layer. Does anyone know any decent examples showing how this can be done with Doctrine 2?
I'm kind unclear of the difference between models and services in Zend. Do you create models (with your core business logic) and then link these somehow to services (for accessing the Doctrine 2 entities)?
Or do you perhaps consider the stack - ORM mapper, entities, service layer collectively as a model itself?
Cheers
Al