create a class file under protected\components named RActiveRecord.php
There are a couple of ways to achieve this, but the first is preferred.