As I best understand it, the "table" object is supposed to act as a repository. You would, ideally, add methods to the table class to retrieve instances of 'tableClass'.
It may be better illustrated with an example: You have a class(model) User. In your UserTable class you might make a method called "findActiveUserByUsername()" to find all active users. If you were to use Doctrine_Query::create()->from('User u')- >where('u.active = 1'); you would get the same result, but your query would not be re-usable. Roger On Mar 31, 1:54 pm, FHoerth <fed...@gmail.com> wrote: > Hi! > Can someone explain me what is the difference between: > > $this->var = Doctrine_Core::getTable('tableClass')- > > >createQuery('alias')->where('alias.column > ?', date); > > and this? > > $this->var = Doctrine_Query::create()->from('tableClass alias')- > > >where('alias.column > ?', date); > > Why not using a single method? -- 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