KejawenLab / SemartHris

SemartHris adalah Enterprise Grade HRIS yang khusus diperuntukan bagi Perusahaan di Willayah Hukum Indonesia
MIT License
218 stars 121 forks source link

There are no commands defined in the "doctrine:fixtures" namespace #35

Closed bayoehafiz closed 5 years ago

bayoehafiz commented 5 years ago

Got this error when running php bin/console doctrine:fixtures:load

There are no commands defined in the "doctrine:fixtures" namespace. Did you mean one of these? doctrine doctrine:cache doctrine:database doctrine:generate doctrine:mapping doctrine:query doctrine:schema

ad3n commented 5 years ago

@bayoehafiz change environment to dev instead of prod

Wanderfo commented 4 years ago

@ad3n in dockerfile SYMFONY_ENV already is dev but still meet the error

ucay commented 4 years ago

@ad3n in dockerfile SYMFONY_ENV already is dev but still meet the error

Did you installed the vendor again? (composer install) Maybe the doctrine fixtures not installed yet .

ad3n commented 4 years ago

@MacroHongJian : share your code here

Wanderfo commented 4 years ago

when i run docker-compose exec app bin/console doctrine:fixtures:load --env=dev -nall goes fine

Wanderfo commented 4 years ago
   > purging database
   > loading KejawenLab\Application\SemartHris\DataFixtures\RegionFixtures
   > loading KejawenLab\Application\SemartHris\DataFixtures\CompanyFixtures
   > loading KejawenLab\Application\SemartHris\DataFixtures\DepartmentFixtures
   > loading KejawenLab\Application\SemartHris\DataFixtures\ContractFixtures
   > loading KejawenLab\Application\SemartHris\DataFixtures\EducationTitleFixtures
   > loading KejawenLab\Application\SemartHris\DataFixtures\EducationalInstituteFixtures
   > loading KejawenLab\Application\SemartHris\DataFixtures\JobLevelFixtures
   > loading KejawenLab\Application\SemartHris\DataFixtures\HolidayFixtures
   > loading KejawenLab\Application\SemartHris\DataFixtures\ReasonFixtures
   > loading KejawenLab\Application\SemartHris\DataFixtures\SalaryComponentFixtures
   > loading KejawenLab\Application\SemartHris\DataFixtures\ShiftmentFixtures
   > loading KejawenLab\Application\SemartHris\DataFixtures\CityFixtures
   > loading KejawenLab\Application\SemartHris\DataFixtures\CompanyDepartmentFixtures
   > loading KejawenLab\Application\SemartHris\DataFixtures\JobTitleFixtures
   > loading KejawenLab\Application\SemartHris\DataFixtures\EmployeeFixtures
User baru telah dibuat!!!
Username: MUHSURYA8701
Password: 1234567890

it shows like this , is it right ?