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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:22:40+00:00 2026-05-10T20:22:40+00:00

I am messing around with Doctrine (version 1.0.3) to see if would make a

  • 0

I am messing around with Doctrine (version 1.0.3) to see if would make a good fit for the collection of apps I am writing.

I am trying to do a query and return only 3 fields. I am getting the correct fields in one table, but the join table I am getting everything when I only want one field. I have written out the what the SQL should be in phpMyAdmin and it returns only what I need.

 31 $ftp_info = Doctrine_Query::create()  32          ->select('f.uid, f.home, s.identifier')  33          ->from('FtpUser f')  34          ->leftJoin('f.Submitter s')  35          ->where('f.uid = ?',500)  36          ->execute();  37  38 print $ftp_info[0]->uid .'\n';  39 print $ftp_info[0]->home .'\n';  40 print $ftp_info[0]->Submitter->description .'\n';  41 print $ftp_info[0]->Submitter->identifier .'\n'; 

It gives me a value for description when I did not ask for it in the query. These two tables have a one-to-one relationship defined in the appropriate setUp methods.

Any clues to what I am missing?

  • 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. 2026-05-10T20:22:41+00:00Added an answer on May 10, 2026 at 8:22 pm

    I think it will lazy-load that field from the database automatically as you request it. See here

    You could maybe var_dump() the result to confirm this

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

Sidebar

Ask A Question

Stats

  • Questions 77k
  • Answers 77k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer The MSI created by the setup project (in Visual Studio)… May 11, 2026 at 3:17 pm
  • added an answer Rational bought Verdix in '94. IBM bought Rational in '03.… May 11, 2026 at 3:17 pm
  • added an answer If I stop and restarted IIS on my local workstation,… May 11, 2026 at 3:17 pm

Related Questions

I am messing around with a toy interpreter in Java and I was considering
I am messing around with the Indy 10 supplied with Delphi 2009 and am
I am sure am messing around with a lot of casting and such in
I've been messing around with the free Digital Mars Compiler at work (naughty I

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.