From 2262561fc0e81ae81c4d261f20bb7df0c339157d Mon Sep 17 00:00:00 2001
From: Marco Piazza <marco.piazza@yetopen.com>
Date: Wed, 22 May 2024 17:57:19 +0200
Subject: [PATCH] Default seeder base path calculated using seederPath
 parameter

---
 src/SeederController.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/SeederController.php b/src/SeederController.php
index 107b5a7..ebfd8cd 100644
--- a/src/SeederController.php
+++ b/src/SeederController.php
@@ -347,7 +347,7 @@ protected function generateFakerField($key, $dataType = null)
     protected function getDefaultSeeder()
     {
         $defaultSeederClass = "{$this->seederNamespace}\\{$this->defaultSeederClass}";
-        $defaultSeederFile = str_replace('\\', DIRECTORY_SEPARATOR, "{$defaultSeederClass}.php");
+        $defaultSeederFile = "{$this->seederPath}/{$defaultSeederClass}.php";
 
         if (!class_exists($defaultSeederClass) || !file_exists($defaultSeederFile)) {
             FileHelper::createDirectory($this->seederPath);