diff --git a/src/Command/SqlGeneratorCommand.php b/src/Command/SqlGeneratorCommand.php index 3efb5af..a55b144 100644 --- a/src/Command/SqlGeneratorCommand.php +++ b/src/Command/SqlGeneratorCommand.php @@ -292,7 +292,7 @@ private function getForeignKey(\ReflectionProperty $property) : ?string private function getBeans(string $destination) : array { $robotLoader = new \Nette\Loaders\RobotLoader(); - $robotLoader->addDirectory(__DIR__ . $destination); + $robotLoader->addDirectory($destination); $robotLoader->rebuild(); $foundClasses = \array_keys($robotLoader->getIndexedClasses());