![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 371 Pomógł: 30 Dołączył: 14.04.2010 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
uczę się Symfony2 korzystając z ksiązki pana Gajdy + dokumentacji(symfony 2.3).Chciałem z pliku *.yml zaimportować dane do bazy danych. Baza utworzona, tabela też, wszystko fajnie wygenerowane za pomocą konsoli. Problem jednak jest z dodaniem danych z tego pliku do bazy. W celu dodania danych utworzyłem klasę:
No i zostało do wydania tylko polecenie: Kod php app/console doctrine:fixtures:load --verbose Z tym że w odpowiedzi dostaje: Kod Careful, database will be purged. Do you want to continue Y/N ?y [InvalidArgumentException] Could not find any fixtures to load in: - C:\xampp\htdocs\symfony2\vendor\symfony\symfony\src\Symfony\Bundle\Framew orkBundle/DataFixtures/ORM - C:\xampp\htdocs\symfony2\vendor\symfony\symfony\src\Symfony\Bundle\Securi tyBundle/DataFixtures/ORM - C:\xampp\htdocs\symfony2\vendor\symfony\symfony\src\Symfony\Bundle\TwigBu ndle/DataFixtures/ORM - C:\xampp\htdocs\symfony2\vendor\symfony\monolog-bundle\Symfony\Bundle\Mon ologBundle/DataFixtures/ORM - C:\xampp\htdocs\symfony2\vendor\symfony\swiftmailer-bundle\Symfony\Bundle \SwiftmailerBundle/DataFixtures/ORM - C:\xampp\htdocs\symfony2\vendor\symfony\assetic-bundle\Symfony\Bundle\Ass eticBundle/DataFixtures/ORM - C:\xampp\htdocs\symfony2\vendor\doctrine\doctrine-bundle\Doctrine\Bundle\ DoctrineBundle/DataFixtures/ORM - C:\xampp\htdocs\symfony2\vendor\sensio\framework-extra-bundle\Sensio\Bund le\FrameworkExtraBundle/DataFixtures/ORM - C:\xampp\htdocs\symfony2\vendor\doctrine\doctrine-fixtures-bundle\Doctrin e\Bundle\FixturesBundle/DataFixtures/ORM - C:\xampp\htdocs\symfony2\src\My\FrontendBundle/DataFixtures/ORM - C:\xampp\htdocs\symfony2\vendor\symfony\symfony\src\Symfony\Bundle\WebPro filerBundle/DataFixtures/ORM - C:\xampp\htdocs\symfony2\vendor\sensio\distribution-bundle\Sensio\Bundle\ DistributionBundle/DataFixtures/ORM - C:\xampp\htdocs\symfony2\vendor\sensio\generator-bundle\Sensio\Bundle\Gen eratorBundle/DataFixtures/ORM doctrine:fixtures:load [--fixtures[="..."]] [--append] [--em="..."] [--purge-wit h-truncate] a dodając --verbose - php app/console doctrine:fixtures:load --verbose otrzymuje dodatkowo: Kod Exception trace: () at C:\xampp\htdocs\symfony2\vendor\doctrine\doctrine-fixtures-bundle\Doctrin e\Bundle\FixturesBundle\Command\LoadDataFixturesDoctrineCommand.php:96 Doctrine\Bundle\FixturesBundle\Command\LoadDataFixturesDoctrineCommand->execute () at C:\xampp\htdocs\symfony2\vendor\symfony\symfony\src\Symfony\Component\Cons ole\Command\Command.php:244 Symfony\Component\Console\Command\Command->run() at C:\xampp\htdocs\symfony2\ve ndor\symfony\symfony\src\Symfony\Component\Console\Application.php:904 Symfony\Component\Console\Application->doRunCommand() at C:\xampp\htdocs\symfon y2\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:191 Symfony\Component\Console\Application->doRun() at C:\xampp\htdocs\symfony2\vend or\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:96 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at C:\xampp\htdocs\ symfony2\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:12 1 Symfony\Component\Console\Application->run() at C:\xampp\htdocs\symfony2\app\co nsole:27 Moje pytanie brzmi: jak sobie z tym poradzić? Nie znalazłem w google jasnej odpowiedzi. Proszę o pomoc. Edit: Problem rozwiązany: przyczyna - błąd w nazwie katalogu ;/ Ten post edytował webmaniak 29.12.2013, 14:31:33 -------------------- Pomogłem - kliknij
![]() |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 22.06.2025 - 08:56 |