tag:blogger.com,1999:blog-3825636150904136311.post3598263723568278781..comments2024-02-13T15:01:56.008+01:00Comments on Symfony world: extending doctrine admin module: filtered sumTomaszhttp://www.blogger.com/profile/08377176323730229843noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-3825636150904136311.post-65426377660761917162011-11-27T10:36:03.659+01:002011-11-27T10:36:03.659+01:00thanks for the tip ;)thanks for the tip ;)Tomaszhttps://www.blogger.com/profile/08377176323730229843noreply@blogger.comtag:blogger.com,1999:blog-3825636150904136311.post-9359632201797748142011-11-16T19:56:31.934+01:002011-11-16T19:56:31.934+01:00a bit shorter variant:
$this->total_count = $q...a bit shorter variant:<br /><br />$this->total_count = $query<br /> ->limit(0)<br /> ->select("SUM({$root_alias}.coupon_price) AS sum")<br /> ->fetchOne(array(), Doctrine::HYDRATE_SINGLE_SCALAR)<br />;Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3825636150904136311.post-56557010592933502162011-11-09T06:18:05.768+01:002011-11-09T06:18:05.768+01:00You explained this very well.Thanks for being help...You explained this very well.Thanks for being helpful.Social Networking Designhttp://www.vinfotech.com/web_2.0/social-network-design.htmnoreply@blogger.com