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

Related Questions

I'm messing around with the Windows Phone 7 sdk and I'm trying to make
I've been messing around with this for hours trying different ways of ordering by
I'm messing around with Xcode and Interface Builder. I want to make a timer
I'm messing around with the jquery qtip tooltip plugin and i'm trying to add
I'm just messing around trying to learn a little bit about parallel computing. If
I've been messing around for hours now trying to adjust the height of the
I've started messing around with Google App Engine, writing Python. I love Visual Studio
I'm messing around with Win32 API and windows messaging trying to figure out how
I'm new to Doctrine, and I'm trying to get my head around both Doctrine
just messing around, trying to expand my bag o' tricks: I was just experimenting

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.