You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when using the -s option when running seeds with namespaces, the seeds need to be referred to by their fully qualified class name, and cannot be run with only their base class name.
A seed class called "ExampleSeeder" located in "%%PHINX_CONFIG_DIR%%/src/Seeds/Global" with a namespace of "Something\Database\Seeds\Global" still needs to be run with its fully qualified class name when run with the following command ./bin/phinx seed:run -s "Something\\\Database\\\Seeds\\\Global\\\ExampleSeeder". The command ./bin/phinx seed:run -s "ExampleSeeder" will report an error that the seed class does not exist.
Going over the code, this seems to be intentional and not a bug. Is there some other configuration setting that I'm missing which would enable the seed:run method to run with merely the class name? This would make running them by hand much less laboursome, especially when using multiple namespaces and multiple seed folders.
The text was updated successfully, but these errors were encountered:
Currently, when using the -s option when running seeds with namespaces, the seeds need to be referred to by their fully qualified class name, and cannot be run with only their base class name.
My paths configuration is as follows
A seed class called "ExampleSeeder" located in "%%PHINX_CONFIG_DIR%%/src/Seeds/Global" with a namespace of "Something\Database\Seeds\Global" still needs to be run with its fully qualified class name when run with the following command
./bin/phinx seed:run -s "Something\\\Database\\\Seeds\\\Global\\\ExampleSeeder"
. The command./bin/phinx seed:run -s "ExampleSeeder"
will report an error that the seed class does not exist.Going over the code, this seems to be intentional and not a bug. Is there some other configuration setting that I'm missing which would enable the seed:run method to run with merely the class name? This would make running them by hand much less laboursome, especially when using multiple namespaces and multiple seed folders.
The text was updated successfully, but these errors were encountered: