title: Yii / Gii Model Code generation add method to generator
body: <p>I have had a look around the web and can't find a good explanation.</p>
  
  <p>Using Gii I generate models. I was wondering how I can get the generator to also add a custom method to all of my models I generate? I want to add a method where I pass it the result of a "->queryAll()" and it maps it to itself for me.</p>
  
  <p>Thanks in advance</p>