Skip to content

You must provide either ManagerRegistry or ConnectionRegistry after an upgrade to 0.10.0 #40

@kostirez1

Description

@kostirez1

While trying to upgrade between 0.9.3 and 0.10.0, I encountered the following message:

ERROR: You must provide either ManagerRegistry or ConnectionRegistry.

Both $managerRegistry and $connectionRegistry values in DependencyFactoryCreator::create() are null, but I can't figure out why.

Compiled Nette DI container looks like:

public function createServiceNettrine__migrations__dependencyFactory(): Doctrine\Migrations\DependencyFactory
{
	return Nettrine\Migrations\DependencyFactoryCreator::create(
		$this,
		$this->getService('nettrine.migrations.configuration'),
		logger: $this->getService('monolog.logger.default'),
	);
}

config.neon options look ok to me, at least according to the documentation for 0.10.0.

nettrine.migrations:
  table: migrations
  directories:
      Foo\Bar\Migrations: %appDir%/../sql/migrations
  versionsOrganization: year_and_month
  customTemplate: %appDir%/../sql/migrations/migrations.tpl

Installed composer packages are:

Direct:
  doctrine/dbal: 3.9.4
  nettrine/dbal: 0.9.0
  nettrine/migrations: 0.10.0
Transitive:
  doctrine/cache: 2.2.0
  doctrine/deprecations: 1.1.4
  doctrine/event-manager: 2.0.1
  doctrine/migrations: 3.8.2
  nettrine/cache: 0.5.0

The two use Doctrine\Persistence\ConnectionRegistry and ManagerRegistry definitions don't resolve to anything, possibly due to doctrine/persistence not being installed? Although, even by requiring that, nothing changes. An upgrade of nettrine/dbal (0.9.0 -> 0.10.0) blocks due to my project still being on doctrine/dbal ^3.9.

Is it possible that nettrine/migrations v0.10.0 has some shadow/incorrect dependencies defined in composer.json? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions