/** * After find event */ public function afterFind() { parent::afterFind(); $constWrappers = self::COLUMN_WRAPPERS; foreach (static::formats() as $column => $format) { if (!empty($constWrappers[$format]) && is_callable($constWrappers[$format])) { $this->{$column} = call_user_func($constWrappers[$format], $this->{$column}); } } }