title: Phalcon Update Model does not work
body: <p>The problem is explained short with the following code. <code>$category-&gt;update()</code> results with true (or <code>$category-&gt;save()</code>) but really nothing happens.</p>
  
  <pre><code>$category = Category::findFirst('id=' . (int)$id);
  if ($this-&gt;request-&gt;isPost()) {
      $category-&gt;setCategoryId($this-&gt;request-&gt;getPost('category_id', 'int'));
      $category-&gt;setLanguageId($this-&gt;request-&gt;getPost('language_id', 'int'));
      $category-&gt;setName($this-&gt;request-&gt;getPost('name', 'striptags'));
      $category-&gt;setDescription($this-&gt;request-&gt;getPost('description', 'striptags'));
      $category-&gt;setSort($this-&gt;request-&gt;getPost('sort'));
      $category-&gt;setValid($this-&gt;request-&gt;getPost('valid'));
      if (!$category-&gt;update()) {
          $this-&gt;flash-&gt;error($category-&gt;getMessages());
      } else {
          $this-&gt;flash-&gt;success(
              $this-&gt;translator-&gt;_('Category was updated successfully')
          );
      }
  }
  </code></pre>
  
  <p>The model-classes are generated with getter- and setter-methods and protected member-variables with the phalcon-devtools.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>I know this problem was also discussed <a href="https://stackoverflow.com/questions/18346569/phalconphp-framework-how-to-update-a-model-object-and-the-related-object">here</a> but i unfortunately have not enough points to write a comment :)</p>
  
  <p><strong>Phalcon Version 1.2.3, MySQL 5.5 + Apache on Debian with PHP5.4.4</strong></p>