Builder entity model for unit test on yii framework