Returning records from 3 tables via a Join Table with Propel in Symfony

Posted by Jon Winstanley on Stack Overflow See other posts from Stack Overflow or by Jon Winstanley
Published on 2010-03-14T23:24:42Z Indexed on 2010/03/15 13:09 UTC
Read the original article Hit count: 236

Filed under:
|
|
|

I have 3 database tables:

  • article
  • article_has_tag (2 FK's to the other tables)
  • tag

I currently show a list of articles with the article's tags shown underneath but the number of queries grows as the list gets longer.

I want to loop over all the articles and get the tag objects from each one in turn.

Can it be done in 1 propel query?

© Stack Overflow or respective owner

Related posts about symfony

Related posts about propel