public static function childClass($asModel = false, $initData = [])
    {
        $data = debug_backtrace();
        $callingClassName = get_class($data[1]['object']);
        $pattern = '#^(.+\\\\)(\w+\\\\\w+)$#';
        $formName = preg_replace($pattern, '$2', get_called_class());
        $result = preg_replace($pattern, '$1'.$formName, $callingClassName);
        return $asModel ? new $result($initData) : $result;
    }