Yii Hydrator The package provides a way to create and hydrate objects from a set of raw data. General usage Type casting Mapping Creating own attributes Attribute resolver factory Object factory