Try this, $articlesList = ArticlePeer::doSelectJoinCategory(new Criteria());
On 10 oct, 11:34, javo <[EMAIL PROTECTED]> wrote: > Hi all > > I have on little problem and I'm new to symfony and I can't find aby > sulution, > > My article model looks like this -> > article: > id: { type: integer, required: true } > title: { type: varchar, size: '255' } > created_at: { type: timestamp } > language_id: { type: integer } > category_id: { type: integer } > > my category model consist from id, and name only > > If I try to use > > $articlesList = ArticlePeer::doSelect(new Criteria()); > I'll get all articles with their category ids, but I want to get also > their names in one query .... > is it possible? > > thank you so much --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---