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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:09:21+00:00 2026-05-14T22:09:21+00:00

i created a Doctrine_Query and executes it but i wanna know what params i

  • 0

i created a Doctrine_Query and executes it but i wanna know what params i can pass to it.

$q = Doctrine_Query::create()
    ->select('cl.id, cl.name')
    ->from('ContactList cl');

$contactLists = $q->execute($params, $hydrationMode);

from the api documentation:

execute($params = array(), $hydrationMode = null)

where do they tell me about the params? and also hydration mode.

seems like i cannot find anything in the documentations. would be great if they had a reference for everything.

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-14T22:09:22+00:00Added an answer on May 14, 2026 at 10:09 pm

    I beleive the params are an array of values to bind to the query – similar to a prepeared statement – for example:

    $q = Doctrine_Query::create()
        ->select('cl.id, cl.name')
        ->from('ContactList cl')
        ->where('cl.name = ?');
    
    $q->execute(array('fayer'));
    

    The hydration mode is one of the hydrator constants from Doctrine_Core and determines how the result set is hydrated (Array, object, etc..) You can also write custom hydrators if you need to.

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

Sidebar

Related Questions

Whats this?? my query is: Doctrine_Query::create() ->select('rec.*') ->from('Records rec') ->execute(); Records table contains more
When I do something like this: $boards = Doctrine_Query::create() ->select('bds.id') ->from('board bds') ->whereIn('bds.type', $boardtype)
I'm trying to execute this: $q = Doctrine_Query::create() ->select('MAX(s.ID) AS max') ->from('stuff s') ->execute();
In Doctrine i can: $q = Doctrine_Query::create() ->from('One o') ->where('t.text = ?', 'aaa') ->andWhere('h.text
i wonder what this query means: $blogPost = Doctrine_Query::create()->from('BlogPost p')->where('p.slug = ?', 'doctrine-released')->execute(); could
I need to increment User's balance, so I do: Doctrine_Query::create()->from('User')->update('balance', 'balance + 0.15')->execute(); And
Created .NET WCF service, tested it - works. Generated schemas from Data and service
I have a doctrine update query to save my data: $customer = Doctrine_Query::create() ->update('Customer')
I am trying to query the department name from one table, using the id
I need help with this code: $mdl = Doctrine_Query::create() ->update('Model_CoachsTownsLang ctl') ->set('ctl.Coachs_Users_id', '1') ->set('ctl.Towns_idTowns',

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.