Update CActiveRecord.php

fix #3477