title: Magento model won't save values
body: <p>I'm working on a backend module that saves to a custom table.  My problem is that I've added fields to this table as I've been working on it, the newly added fields won't save with the model ->Save() function.</p>
  
  <p>I've completely removed the module and resinstalled it, letting it create my custom table from scratch in case it had some internal field count that I wasn't aware of, but still same result.</p>
  
  <p>After adding my data I do a var dump on what gets submitted like this:</p>
  
  <pre><code>$model = Mage::getModel("smsmanager/sms")-&gt;addData($post_data)-&gt;save();
  var_dump($model-&gt;getData()); exit;
  </code></pre>
  
  <p>With the result</p>
  
  <pre><code>array
    'form_key' =&gt; string 'RUGN3fruWobAf8CZ' (length=16)
    'message' =&gt; string 'adg asdg sad' (length=14)
    'country' =&gt; string 'SE' (length=2)
    'telephone' =&gt; string '+46707332290' (length=12)
    'type' =&gt; int 2
    'id' =&gt; string '5' (length=1)
  </code></pre>
  
  <p>And everything looks just fine.  When I check the newly created row with ID 5, I get this:</p>
  
  <pre><code>|-----------------------------------------------------------------------------------------------------------|
  |id int(11)| type int(11) | telephone varchar(20) | country varchar(2) | message text | date timestamp      |
  |-----------------------------------------------------------------------------------------------------------|
  | 5        | 2            | +46707332290          | NULL               | adg asdg sad | 2013-03-19 21:44:51 |
  |-----------------------------------------------------------------------------------------------------------|
  </code></pre>
  
  <p>I've also tried to manually insert other fields into the database table like "junkfield" and add it with <code>$post_data['junkfield'] = "hello";</code> and it also gets null as value.</p>
  
  <p>For me, it's looking like Magento is screwing with me. Defying logic. Anybody got another take on what could be wrong?  Oh and before I forget, here's my table layout:</p>
  
  <pre><code>CREATE TABLE IF NOT EXISTS `sms_entry` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `type` int(11) NOT NULL,
    `telephone` varchar(20) DEFAULT NULL,
    `country` varchar(2) DEFAULT NULL,
    `message` text,
    `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    PRIMARY KEY (`id`)
  ) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
  </code></pre>
  
  <p>No matter what I try it just won't save the country code. I also tried making teh varchar larger then 2, switching name to <code>country_code</code> (incase country was reserved or something). Nothing seems to help.</p>