Hi guys,

I'm currently a little bit confused about cakes $model->find('first',
[...]) function...the problem:

$model->find('first', array('fields' => array('my_integer_field'),
'order' => 'id DESC'));

results in

SELECT TableNick.my_integer_field FROM my_table TableNick WHERE 1 = 1
ORDER BY my_integer_field DESC

I expected that cake recognize that i only need a single record and
append a "LIMIT 0,1", but somehow it doesn't...

any ideas? i'm using cake 1.2.0.7296-rc2, maybe this is no longer an
issue in 1.1.20.7692?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to