diff --git a/src/Tdt/Input/EMLP/JobExecuter.php b/src/Tdt/Input/EMLP/JobExecuter.php index fc183e5..6b069c7 100644 --- a/src/Tdt/Input/EMLP/JobExecuter.php +++ b/src/Tdt/Input/EMLP/JobExecuter.php @@ -134,7 +134,20 @@ private function getExecuter($model) return $model; } - $executer = 'Tdt\\Input\\ELMP\\' . get_class($model); + $class = get_class($model); + + $pieces = explode('\\', $class); + + // Convert the model name to ucfirst namespace conventions + $model_name = ''; + + foreach ($pieces as $class_piece) { + $model_name .= ucfirst($class_piece) . '\\'; + } + + $model_name = rtrim($model_name, '\\'); + + $executer = 'Tdt\\Input\\EMLP\\' . $model_name; if (!class_exists($executer)) {