Hi Guys,

We develop a project which use ZF 1.11.x, Doctrine 1.2.x, ExtJs 3.3.x. I
wrote some ZF Controller Helper over Doctrine and ExtJs. For example
pagination helper which get the limit and offset and use Doctrine_Pager.
Like
https://github.com/lab2023/kebab-project/blob/master/library/Kebab/Controller/Helper/Pagination.php
. We used these helpers at controller. 

But database processes should be done at models. Fat model skinny controller
principle! Thats why I create Zend Models folder and use Doctrine Entites
Class at models folder. like
https://github.com/lab2023/kebab-project/blob/master/application/modules/kebab/models/Story.php
of course i can't use zend controller helper at models. My questions are 

* Should i rewrite these controller helper which are over doctrine  at
library folder with normal class?
* Or should i find a way to using these controller helper at Zend Model
Class?
* Or if i use doctrine base entity class, i don't need zend models class
which mean use Doctrine Base Entity Class at Controller? So fat
Controller!!! All DQL are at Controller!
* What is the best practices? Using third party ORM library and Zend
Framework Integration over using Entity Classes?

Best Regards.

--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/ZF-Doctrine-Integration-i-made-an-architectural-error-over-Models-tp3566283p3566283.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to