Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ActivityListBundle] DataFixture Migration fails on platform update #1111

Open
RocKordier opened this issue Mar 31, 2024 · 0 comments
Open

Comments

@RocKordier
Copy link
Contributor

RocKordier commented Mar 31, 2024

Summary
Oro\Bundle\CalendarBundle\Migrations\Data\ORM\AddCalendarEventActivityLists fails on platform:update

Steps to reproduce

  • clone Platform-Application
  • composer install
  • php bin/console oro:install
  • composer require oro/calendar-bundle
Running composer update oro/calendar-bundle
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking oro/calendar-bundle (6.0.0)
  • php bin/console oro:platform:update

Actual Result

  > loading Oro\Bundle\CalendarBundle\Migrations\Data\ORM\AddCalendarEventActivityLists
In AddActivityListsData.php line 55:

  [Error]                                                                      
  Undefined constant Oro\Bundle\CalendarBundle\Migrations\Data\ORM\AddCalendarEventActivityLists::BATCH_SIZE                                              
                                                                               

Exception trace:
  at ./vendor/oro/platform/src/Oro/Bundle/ActivityListBundle/Migrations/Data/ORM/AddActivityListsData.php:55
 Oro\Bundle\ActivityListBundle\Migrations\Data\ORM\AddActivityListsData->addActivityListsForActivityClass() at ./vendor/oro/calendar-bundle/Migrations/Data/ORM/AddCalendarEventActivityLists.php:28
 Oro\Bundle\CalendarBundle\Migrations\Data\ORM\AddCalendarEventActivityLists->load() at ./vendor/doctrine/data-fixtures/src/Executor/AbstractExecutor.php:123
 Doctrine\Common\DataFixtures\Executor\AbstractExecutor->load() at ./vendor/oro/platform/src/Oro/Bundle/MigrationBundle/Migration/DataFixturesORMExecutor.php:45
 Oro\Bundle\MigrationBundle\Migration\DataFixturesORMExecutor->execute() at ./vendor/oro/platform/src/Oro/Bundle/MigrationBundle/Migration/DataFixturesExecutor.php:55
 Oro\Bundle\MigrationBundle\Migration\DataFixturesExecutor->execute() at ./vendor/oro/platform/src/Oro/Bundle/MigrationBundle/Command/LoadDataFixturesCommand.php:283
 Oro\Bundle\MigrationBundle\Command\LoadDataFixturesCommand->executeFixtures() at ./vendor/oro/platform/src/Oro/Bundle/MigrationBundle/Command/LoadDataFixturesCommand.php:228
 Oro\Bundle\MigrationBundle\Command\LoadDataFixturesCommand->processFixtures() at ./vendor/oro/platform/src/Oro/Bundle/MigrationBundle/Command/LoadDataFixturesCommand.php:151
 Oro\Bundle\MigrationBundle\Command\LoadDataFixturesCommand->execute() at ./vendor/symfony/console/Command/Command.php:326
 Symfony\Component\Console\Command\Command->run() at ./vendor/symfony/console/Application.php:1096
 Symfony\Component\Console\Application->doRunCommand() at ./vendor/symfony/framework-bundle/Console/Application.php:126
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at ./vendor/symfony/console/Application.php:324
 Symfony\Component\Console\Application->doRun() at ./vendor/symfony/framework-bundle/Console/Application.php:80
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at ./vendor/symfony/console/Application.php:175
 Symfony\Component\Console\Application->run() at ./vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49
 Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run() at ./vendor/autoload_runtime.php:37
 require_once() at ./bin/console:16

oro:migration:data:load [--fixtures-type [FIXTURES-TYPE]] [--dry-run] [--bundles [BUNDLES]] [--exclude [EXCLUDE]] [--language [LANGUAGE]] [--formatting-code [FORMATTING-CODE]]

Expected Result
platform:update runs without errors

Details about your environment

  • OroPlatform version: 6.0.0
  • PHP version: 8.3.4
  • Database Postgres:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant