title: Saving Array to Database in CakePHP
body: <p>I'm out of ideas here is my controller:</p>
  
  <pre><code>class GoogleNewsController extends AppController {
      var $name = 'GoogleNews';
      var $uses = array('GoogleNews', 'SavedNews');
      var $helpers = array('Html','Form');
      function index() {
  
  $saved = $this-&gt;set('news',$this-&gt;GoogleNews-&gt;find('all'));
  </code></pre>
  
  <p>Im reading data from 'GoogleNews' and they are in my array. Array looks like this:</p>
  
  <pre><code>  array(10) {
    [0]=&gt;
    array(1) {
      ["GoogleNews"]=&gt;
      array(12) {
        ["title"]=&gt;
        string(32) "FIFA 11 fÃ¼r 25,49â‚¬ aus Jersey"
        ["link"]=&gt;
        string(54) "http://feedproxy.google.com/~r/myDealZ/~3/HuNxRhQJraQ/"
        ["pubDate"]=&gt;
        string(31) "Mon, 06 Dec 2010 10:53:22 +0000"
        ["creator"]=&gt;
        string(5) "admin"
        ["guid"]=&gt;
        array(2) {
          ["value"]=&gt;
      string(30) "http://www.mydealz.de/?p=15137"
      ["isPermaLink"]=&gt;
      string(5) "false"
    }
    ["description"]=&gt;
    string(355) "
  </code></pre>
  
  <p>And I want to save elements to my database 'SavedNews'
  I need to save description and title.
  Can anybody tell me how should I write it?</p>
  
  <pre><code> $this-&gt;SavedNews-&gt;set(array('description' =&gt;$this-&gt;GoogleNews-&gt;find('description')));
  </code></pre>
  
  <p>Is this a solution?
  Its only way that it works, but it puts null values to my columns.</p>