title: Updating all the fields in a table using conditions in CakePhp
body: <p>I have a table with some fields i want to update all the colums in a particular row, how we can do this?</p>
  
  <p>I want to update this array of data into the table</p>
  
  <pre><code>                 $travel_details=array(
                  'userprofile_id'=&gt;$upid,
                  'day'=&gt;$data['day'],
                  'dayNumeric'=&gt;$daynum,
                  'morning_route'=&gt;$morning_route,
                  'morning_time'=&gt;$morning_time,
                  'evening_route'=&gt;$evening_route,
                  'evening_time'=&gt;$evening_time,
                  'traveller' =&gt;$traveller
              );
  </code></pre>
  
  <p>i use one code with some conditions </p>
  
  <pre><code>          $this-&gt;Singleroute-&gt;updateAll($travel_details,array('Singleroute.userprofile_id'=&gt;$upid,'Singleroute.daynumeric'=&gt;$daynum,
              'Singleroute.day'=&gt;$data['day']));
  </code></pre>
  
  <p>but this code is not working..is there any way to update al;l the fields in a row?
  <img src="https://i.stack.imgur.com/leQ57.png" alt="this is the table structure"></p>