Set the alias in your config/main.php file (do this before the return array
):
Yii::setPathOfAlias('entity',dirname(__FILE__).DIRECTORY_SEPARATOR.'../models/entity');
// rest of config
return array(
// ...
);
Then use entity.Article
in gii.