Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9089057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:03:10+00:00 2026-06-16T22:03:10+00:00

I love the way populateRelation works, but in this particular case I really got

  • 0

I love the way populateRelation works, but in this particular case I really got stuk!

The schema is very simple:

event
  id
  title
  user_id
user
  id
  name
user_tag
  id
  tag
user_tag_rel
  user_id
  tag_id

Now, what I need to do is to fetch 10 events with the related user and tags.

First option would be:

EventQuery::create()
  ->joinWithUser()
  ->useUserQuery()
    ->joinWithUserTag()
  ->endUse()
  ->limit(10)
  ->find();

Buu it’s not possible tu use with()on a many-to-many in conjunction with limit().

So I tried changing the joinWithwith simple join and calling populateRelation('UserTag') on the result, but Propel Says:

"Calling getRelation() on an unknown relation, UserTag"

Can anyone please tell me if there is any way to call the populateRelation() on the User object?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T22:03:12+00:00Added an answer on June 16, 2026 at 10:03 pm

    using joinWith does the exact same thing as with(), as far as not being able to use a limit.

    You don’t need to use the user query to join these columns. You can just do:

    EventQuery::create()
        ->joinWithUser(Event.User)
        ->joinWithUserTag(User.UserTag)
        ->find();
    

    If you want to use the limit, then do these as join’s, with the Limit, and then run populateRelation afterwards (if you’re doing joinWith you shouldn’t need populateRelation, as those two should be redundant)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I love the way this script works: http://demo.marcofolio.net/bgimg_slideshow/ However, I was wondering, is there
Need a little help with this script. It's working but I'd love a way
I really love the way foursquare designed venue detail view. Especially the map with
I really would love to scale webpages down or up. Is there any way
I love Netbeans, but there's a bug or way of doing things that I
I love programming on the terminal, but am unable to find a way to
I love the way this site does transition between pages . Is the content
You got to love linker errors *sarcasm*. Any way, I am developing a psp
I love the way this scatterchart highlights circles when you mouse over them: http://novus.github.com/nvd3/examples/scatterWithLegend.html
I really love the way Ajax makes a web app perform more like a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.