title: Zend DB Update not updating
body: <p>I dont know why this particular bit of code is simply not updating despite using this style of coding elsewhere succesfully.No exception is being thrown.</p>
  
  <pre><code>CREATE TABLE `accounts` (
    `id` bigint(20) NOT NULL AUTO_INCREMENT,
    `accounts_username` varchar(60) DEFAULT NULL,
    `accounts_fullname` varchar(600) DEFAULT NULL,
    `accounts_email` varchar(600) DEFAULT NULL,
    `accounts_password` varchar(600) DEFAULT NULL,
    `accounts_status` varchar(600) DEFAULT NULL,
    `accounts_roles` varchar(600) DEFAULT NULL,
    `accounts_comments` text,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1
  </code></pre>
  
  <p>In my form I have the code</p>
  
  <pre><code>public function __construct($options = null)
      {
          parent::__construct($options);
  
          $optionsrole = array(
                  'guest' =&gt; 'guest',
                  'user' =&gt; 'user',
                  'writer' =&gt; 'writer',
                  'admin' =&gt; 'admin'              
                  );
  
          $optionsstatus = array(
                  'active' =&gt; 'active',
                  'pending' =&gt; 'pending'              
                  );
  
          $this-&gt;setName('account');
          $id = new Zend_Form_Element_Hidden('id');
          $username = new Zend_Form_Element_Text('accounts_username');
          $username-&gt;setLabel('Username')
                  -&gt;setRequired(true)
                  -&gt;addFilter('StripTags')
                  -&gt;addFilter('StringTrim')
                  -&gt;addValidator('NotEmpty');
          $fullname = new Zend_Form_Element_Text('accounts_fullname');
          $fullname-&gt;setLabel('Fullname')
                  -&gt;setRequired(true)
                  -&gt;addFilter('StripTags')
                  -&gt;addFilter('StringTrim')
                  -&gt;addValidator('NotEmpty');
          $email = new Zend_Form_Element_Text('accounts_email');
          $email-&gt;setLabel('Email')
                  -&gt;setRequired(true)
                  -&gt;addFilter('StripTags')
                  -&gt;addFilter('StringTrim')
                  -&gt;addValidator('NotEmpty')
                  -&gt;addValidator(new Zend_Validate_EmailAddress());
          $password = new Zend_Form_Element_Password('accounts_password');
          $password-&gt;setLabel('Password')
                      -&gt;setRequired(true)
                      -&gt;addFilter('StripTags')
                      -&gt;addFilter('StringTrim')
                      -&gt;addValidator('NotEmpty');
          $status = new Zend_Form_Element_Select('accounts_status');
          $status-&gt;setLabel('Status')
                  -&gt;setRequired(true)
                  //-&gt;addMultiOptions(array('Active','Pending'));
                  -&gt;addMultiOptions($optionsstatus);
  
          $role = new Zend_Form_Element_Select('accounts_roles');
          $role-&gt;setLabel('Role')
                  -&gt;setRequired(true)
                  //-&gt;addMultiOptions(array('guest','user','writer','admin'));
                  -&gt;addMultiOptions($optionsrole);
  
          $comments = new Zend_Form_Element_Textarea('accounts_comments');
          $comments-&gt;setLabel('Comments')
                  //-&gt;setAttrib('size',200)
                  -&gt;setAttrib('rows',20)
                  -&gt;setAttrib('cols',50);             
  
          $submit = new Zend_Form_Element_Submit('submit');
          $submit-&gt;setAttrib('id', 'submitbutton');
          $this-&gt;addElements(array($id, $username, $fullname,$email,
          $password,$status,$role,$comments,$submit));
      } 
  </code></pre>
  
  <p>In my accounts controller </p>
  
  <pre><code>public function editAction()
      {
          $this-&gt;view-&gt;title = "Edit User Account";
          $this-&gt;view-&gt;headTitle($this-&gt;view-&gt;title, 'PREPEND');
          $form = new Form_Account();
          $form-&gt;submit-&gt;setLabel('Save');
          $accounts = new Model_DbTable_Account();
          $this-&gt;view-&gt;form = $form;
          if ($this-&gt;getRequest()-&gt;isPost()) {
              $formData = $this-&gt;getRequest()-&gt;getPost();
              if ($form-&gt;isValid($formData)) {
                  /*
                  if($accounts-&gt;checkUnique($formData['accounts_username'])){
                      $this-&gt;view-&gt;errorMessage = "Username already taken. Please choose another one.";
                      return; 
                  }
                  */
                  $id = (int)$form-&gt;getValue('id');
                  $username = $form-&gt;getValue('accounts_username');
                  $fullname = $form-&gt;getValue('accounts_fullname');
                  $email = $form-&gt;getValue('accounts_email');
                  $password = $form-&gt;getValue('accounts_password');
                  $status = $form-&gt;getValue('accounts_status');
                  $roles = $form-&gt;getValue('accounts_roles');
                  $comments = $form-&gt;getValue('accounts_comments');
                  //$accounts = new Model_DbTable_Account();
                  $accounts-&gt;updateaccount($username, $fullname,$email,
                  $password,$status,$roles,$comments);
                  $this-&gt;_redirect('/account');
              } else {
                  $form-&gt;populate($formData);
              }
          } else {
              $id = $this-&gt;_getParam('id', 0);
              if ($id &gt; 0) {
                  $account = new Model_DbTable_Account();
                  $form-&gt;populate($account-&gt;getaccount($id));
              }
          }
      }
  </code></pre>
  
  <p>In my model</p>
  
  <pre><code>public function updateaccount($id,$username, $fullname, $email,
                  $password,$status,$roles,$comments)
      {
          $data = array(
                  'accounts_username' =&gt; $username,
                  'accounts_fullname' =&gt; $fullname,
                  'accounts_email' =&gt; $email,
                  'accounts_password' =&gt; md5($password),              
                  'accounts_status' =&gt; $status,
                  'accounts_roles' =&gt; $roles,             
                  'accounts_comments' =&gt; $comments,
          );
          $this-&gt;update($data, 'id = '. (int)$id);
      }
  </code></pre>
  
  <p>Am i missing something?</p>