Hi,I'm building a little blog system. I show the last post in the home page and then when clicked it shows the content of the post.
I'm facing this weird problem when calling from an action in differents modules:
when calling from the home module:$this->sf_in_blog_posts = Doctrine_Core::getTable('sfInBlogPost')->getLastPost();
this is done:and it returns the correct record. When doing the same from the other module (which represents the post content) it does:
in this case it is not including the i18n table. getLastPost into the table object is as simple as this: public function getLastPost(){ return Doctrine_Core::getTable('sfInBlogPost') ->createQuery('a') ->orderBy('a.id ASC') ->limit(1) ->execute(); } Why can it generate different queries? thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
<<image/png>>
<<image/png>>