title: Delete multi level in cakephp ( chain delete )
body: <p>I want to delete all dependent rable record</p>
  
  <p>My association </p>
  
  <p><strong>Branch Model</strong></p>
  
  <pre><code>var $hasMany =array(
      'Dealbranch' =&gt; array(
          'className' =&gt; 'Dealbranch',
          'foreignKey' =&gt; 'DLB_BR_ID',
          'dependent' =&gt;true
      )
   );
  </code></pre>
  
  <p><strong>Dealbranch Model</strong></p>
  
  <pre><code>var $belongsTo = array(
      'Deal' =&gt; array(
          'className' =&gt; 'Deal',
          'foreignKey' =&gt; 'DL_ID',
          'dependent' =&gt; true
      ),
      'Branch' =&gt; array(
          'className' =&gt; 'Branch',
          'foreignKey' =&gt; 'DLB_BR_ID',
      )
  );
  </code></pre>
  
  <p><strong>Deal Model</strong></p>
  
  <pre><code>var $hasMany = array(
      'Dealbranch' =&gt; array(
          'className' =&gt; 'Dealbranch',
          'foreignKey' =&gt; 'DLB_DL_ID',
      )
  );
  </code></pre>
  
  <p>In controller I have used</p>
  
  <pre><code>$this-&gt;Branch-&gt;delete($id,true);
  </code></pre>
  
  <p>Now here whem I am deleting branch , so dependent dealbranch deleted successfully but none of any deal record deleted</p>
  
  <p>I want like : whem I am deleting branch , so all dependent dealbranch should be deleted and all dependent( depend on dealbranch) deal record should be deleted</p>
  
  <p>here Deal is child of Dealbranch and Dealbranch is child of branch</p>
  
  <p>Now, For one branch there are multiple record in Dealbranch, and for multiple Dealbranch there is one record in Deal</p>
  
  <p><img src="https://i.stack.imgur.com/swUmz.png" alt="enter image description here"></p>
  
  <p>Please help me. I am using cakephp 2</p>