CodeIgniter Forums
Seeding canot run seeding for code modual - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: Seeding canot run seeding for code modual (/showthread.php?tid=79447)



Seeding canot run seeding for code modual - paliz - 06-17-2021

Code:
I find minor bug which ci4 can not  seeding in code modual. The only place it checks app/database/seeds

It dose not check my name space


> php spark db:seed -TestSeeder -n CoreCommon

i  can create seeder file in coreCommon namespace

php spark make:seeder MySeeder --namespace CoreCommon
Here it dosent recognize - n i look cmd ci4 it was - - namespace
It work like that

Check this out ci4 team


RE: Seeding canot run seeding for code modual - MGatner - 06-19-2021

db:seed does not accept a “-n” parameter - you simply pass the fully-namespaced seed name if it is not in App:

php spark db:seed "CoreCommon\Database\Seeds\TestSeeder"


RE: Seeding canot run seeding for code modual - paliz - 06-19-2021

Oky thanks man

Document need to be update

Document need to be update


RE: Seeding canot run seeding for code modual - MGatner - 06-22-2021

> Document need to be update

Would you submit a Pull Request for this please?