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 7579617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:43:10+00:00 2026-05-30T17:43:10+00:00

I have a table that contains two foreign keys that map back to a

  • 0

I have a table that contains two foreign keys that map back to a membership table. They are named “from_member” and “to_member.”

I am trying to get the Member object that represents this membership table by doing something like:

$feedbackQuery = FeedbackQuery::create()->findOne();
$fromMember = $feedbackQuery->getFromMember();

So that I can go like this:

$firstName = $fromMember->getFirstName();

The only problem is you can’t do that, evidently Propel requires you to call $fedbackQuery->getMember()and who knows what that’s going to return in this case.

Is there any easy way to accomplish getting the member data like this?

  • 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-05-30T17:43:11+00:00Added an answer on May 30, 2026 at 5:43 pm

    Assuming that you are using from_member_id and to_member_id as your foreign keys, you should have two methods at your disposal. getMemberRelatedByToMemberId() and getMemberRelatedByFromMemberId().

    To find your from_member object and to use it.

    $fromMember = $feedbackQuery->getMemberRelatedByToMemberId(); 
    $firstname = $fromMember->getFirstName(); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Should a database table that contains two columns that are foreign keys have a
I have two tables: a schedule table that contains information about how an employee
I have two simple tables in my database. A card table that contains Id,
I have a database that has two tables, one of which contains a foreign
I have two tables. The name table have a foreign key named 'categories'. The
I have a database that contains a two tables, where these table have a
I have two tables, one that contains volunteers, and one that contains venues. Volunteers
I have two functions to add and remove table rows that contain a form
I have a table that contains tasks and I want to give these an
I have a table that contains maybe 10k to 100k rows and I need

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.