#1663: fetchOne with NamedQuery
-----------------------------------+----------------------------------------
Reporter: nORKy | Owner: romanb
Type: enhancement | Status: new
Priority: minor | Milestone: Unknown
Component: Query/Hydration | Version: 1.0-DEV
Keywords: | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 0
-----------------------------------+----------------------------------------
Actullaly, it is not possible to get one result with namedQuery
{{{
$result = $myTable->find('my.named_query', array($id);
echo $result[0]['id']; // if the named query as an option HYDRATE_ARRAY
}}}
What do you think to do a function like this
{{{
$result = $myTable->findOne('my.named_query', array($id);
echo $result['id']; // if the named query as an option HYDRATE_ARRAY
}}}
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1663>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---