Cactiverecord Insert Possible Bug

Hi All,

I am new to the forum. I would like to raise a possible bug.

in CActiveRecord.php of version 1.1.15 on lines 1097 and 1098

			1097 $this->afterSave();


			1098 $this->setIsNewRecord(false);

In my opinion they should be swopped around. setting the isNewRecord to false before calling afterSave.

I have picked it up when overloading the aftersave function and found the isNewRecord is still true after saving the model.

Swopping line 1097 and 1098 fixed te problem.

Kind regards

Jaco