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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:20:14+00:00 2026-05-14T07:20:14+00:00

i wonder what this query means: $blogPost = Doctrine_Query::create()->from(‘BlogPost p’)->where(‘p.slug = ?’, ‘doctrine-released’)->execute(); could

  • 0

i wonder what this query means:

$blogPost = Doctrine_Query::create()->from('BlogPost p')->where('p.slug = ?', 'doctrine-released')->execute();

could someone explain the ? for me?

thanks

  • 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-14T07:20:14+00:00Added an answer on May 14, 2026 at 7:20 am

    I am guessing, but I would bet money that the ? is just a way of saying ‘there is a variable here and I will later populate it’, just like normal binding in other SQL varieties. In your example, that would imply that the ? is expanded to ‘doctrine-released’ at execute time. In other words, the query becomes where p.slug = 'doctrine-released'

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

Sidebar

Related Questions

Could someone explain me what will happen when I execute this query I'm using
I wonder how is this possible in groovy to start an array from the
I have a query like this: SELECT X.Y( 'p1', 'p2', 'p3', 'p4', '100') FROM
I'm newbie in t-sql, and I wonder why this query executes so long ?
I used this query URL http://maps.google.com/maps?q=from+A+to+B&output=kml ,which is given in the answer to this
I'm using this query to calc an user age: SELECT ((YEAR(CURDATE())-YEAR(um.date_birth)) - (RIGHT(CURDATE(),5)<RIGHT(um.date_birth,5))) FROM
When I make a query, I often wonder about this: Is it better to
I wonder if this affects performance or memory consumption a lot. I need an
I wonder is this a bug in chrome or jQuery, or am I misunderstanding
I was wonder if this would be possible and how to do it. I

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.