ZF-4095: Add update/delete method limit parameter

Issue Type: New Feature Created: 2008-08-27T14:57:00.000+0000 Last Updated: 2011-10-21T13:38:11.000+0000 Status: Open Fix version(s): Reporter: Martin Hujer (mhujer) Assignee: Ralph Schindler (ralph) Tags: - Zend_Db

  • Zend_Db_Table

Related issues: - ZF-8746



It is not possible to run a query link this:

<pre class="highlight">

It would be nice to have an extra param to specify limit: 

$db->delete($table, $where, $limit); $db->delete('table', 'name LIKE "b%"', 3);```

And the update method also lacks support of this.


Posted by Ronald Mavarez (proboris) on 2009-04-01T14:36:57.000+0000

You know other way to do this?, Adapters does not works.

Posted by Dennis Day (dennisatddddesigns) on 2010-02-09T23:58:27.000+0000

You would also need an order clause so that you are deleting the correct 3.

Posted by Alexandre Lemaire (saeven) on 2010-08-07T19:41:24.000+0000

Was surprised to discover this was lacking.

Posted by Zimt Sterne (zimt) on 2011-10-21T13:38:11.000+0000

Have you made some progress? Will this be implemented some time?

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.