title: How to correctly call parent:: in beforeSave, beforeValidate, afterSave etc
body: <p>In the Yii documentation we can often read "Make sure you call the parent implementation so that the event is raised properly." for beforeSave, beforeValidate, afterSave ...</p>
  
  <p>In the Yii Blog Tutorial I've seen:</p>
  
  <pre><code>protected function beforeSave()
  {
      if(parent::beforeSave())
      {
          ...
          return true;
      }
      else
          return false;
  }
  </code></pre>
  
  <p>What's up with the if-function?</p>
  
  <p>I've also seen just simply:</p>
  
  <pre><code>protected function afterSave()
  {
      parent::afterSave();
      ...
  }
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>protected function beforeValidate()
  {
      ...
      return parent::beforeValidate();
  }
  </code></pre>
  
  <p>Why do you sometimes wrap the parent::function call in a if-function?<br>
  Does it matter if I just call the parent::function(); in the beginning or return it in the end?</p>