Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-21-2008, 03:35 PM
Junior Member
 
Join Date: Jul 2008
Posts: 11
Default Can I use Zend_Db_Table find() method like a Zend_Db_Select object?

I need to perform some stuff with an array of primary keys.

I'd like to do something like:

$ids = array('my keys');

$table->find($ids)->from($this, 'a_field')->limitPage(2, 10);

Is this possible?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-22-2008, 01:07 PM
Junior Member
 
Join Date: Jul 2008
Posts: 1
Default

Yes this is possible.
What you are talking about is a composite key.

In order to facilitate this you just provide it as an array.

So:
Code:
$table->find(array('key1','key2')->...etc
This is what you suggested in your own post. Should have tried it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:40 AM.