title: Yii Call beforeSave() in other model's beforeSave()
body: <p>I am trying to save a record of another model in model's beforeSave() method. I expected the save() method to call the other's model beforeSave(),but it doesn't.Is it a bug or I am just missed something?Here is some code.</p>
  
  <p><strong>Operations model</strong></p>
  
  <pre><code>public function beforeSave(){
      if(parent::beforeSave()){
  
          if($this-&gt;isNewRecord){
              $this-&gt;creation_date=$this-&gt;modification_date=time();
              $cur=Currencies::model()-&gt;find('LOWER(short)=?',array('usd'));
              if($cur-&gt;id!=$this-&gt;currency_id){
                  $conv_cours=Currencies::model()-&gt;findByPk($this-&gt;currency_id);
                  $this-&gt;ammount_usd=round(($this-&gt;ammount*$conv_cours-&gt;buy)/$cur-&gt;sell,4);
              }else{
                  $this-&gt;ammount_usd=$this-&gt;ammount;
              }
  
          }else{
              $this-&gt;modification_date=time();
          }
  
          $opType=OperationType::model()-&gt;findByPk($this-&gt;operation_type);
  
          $log=new ActionLogs;
          $log-&gt;comment=Yii::app()-&gt;user-&gt;name.' добавил '.$opType-&gt;name;
          /*$log-&gt;logtime=time();
          $log-&gt;user_id=Yii::app()-&gt;user-&gt;id;*/
          $v=1;
          $log-&gt;save ();
  
          return true;
  
      }else{
          return false;
  
      }
  
  }
  </code></pre>
  
  <p>And another models beforeSave()</p>
  
  <pre><code>    public function beforeSave(){
  if(parent::beforeSave()){
      if($this-&gt;isNewRecord){
          $this-&gt;logtime=time();
          $this-&gt;user_id=Yii::app()-&gt;user-&gt;id;
      }
      return true;
  }else{
      return false;
  }
  </code></pre>
  
  <p>}
  Thanks. </p>