Update BaseActiveRecord.php