title: is there any common default function fpr APPmodel in cakephp.. which runs before the query execute
body: <p>I wanted to add a query </p>
  
  <pre><code>$this-&gt;query('SET SQL_BIG_SELECTS=1'); // helps to run long queries
  </code></pre>
  
  <p>Is there any common function that runs before any function in appModel.
  Like we have beforefilter function for controller that executes itself before executing any function.</p>
  
  <p>So that I don't have to write the same code in each query and simply can define if in Appmodel.</p>