[ActivityListBundle] DataFixture Migration fails on platform update #1111
Open
Description
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
Metadata
Assignees
Labels
No labels