title: Cakephp, how using try catch in action of controller
body: <p>I have one model with associative data, with relation hasMany through,
  Example-models:</p>
  
  <p>One
     OneTwo
     Two</p>
  
  <p>When I update my object One with containing objects OneTwo, I need to delete old objects OneTwo.</p>
  
  <p>I use saveAssociated for save object One, with atomic = false.</p>
  
  <p>I'm handling the transaction manually, example at fly:</p>
  
  <pre><code>$save = false;
  $dataSource-&gt;begin();
  try{        
  
      $One-&gt;OneTwo-&gt;deleteAll(conditions);
  
      $saveAssociated( $one ); //if exception for anythings go catch
  
      $save = true;
  }catch( Exception $e ){
      //print exception in log
  
  }
  
  if($save){
      //commit
  }else{
      //rollback
  }
  </code></pre>
  
  <p>but the block try catch is ignored for cake, in exception not go at the catch, continue normal.</p>
  
  <p>as I can use a block try catch in cake??</p>