ZF-11711: Primary keys index corrupted after Zend_Db_Table::insert

Issue Type: Bug Created: 2011-08-31T10:32:54.000+0000 Last Updated: 2011-08-31T10:37:16.000+0000 Status: Open Fix version(s): Reporter: mehdi (mehdig) Assignee: Ralph Schindler (ralph) Tags: - Zend_Db_Table

  • Zend_Db

Related issues: Attachments:


After Zend_Db_Table::insert call, primary indexes start at 1 .

Ex: Inside extended class :

<pre class="highlight"> 
protected $_primary = array('myKey');

function ...() {

//After insert primary key 'myKey' has index 1 in $_primary var (Expected 0);

function ...() {
    $this->getAdapter()->insert($this->_name, $datas);

//After insert, primary key keep index 0.


No comments to display

Have you found an issue?

See the Overview section for more details.


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

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