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

DBAL 4 compatibility #86

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

DBAL 4 compatibility #86

wants to merge 5 commits into from

Conversation

jankonas
Copy link
Contributor

@jankonas jankonas commented Jul 21, 2024

BC breaks

Types registration

Since no types are commented anymore, you cannot use the registration with commented property anymore. Just use the simple registration with type and class name:

nettrine.dbal:
  connection:
    types:
      uuid: Ramsey\Uuid\Doctrine\UuidType # works

      uuid_binary_ordered_time: # does not work, even with ommiting the line with `commented` property
        class: Ramsey\Uuid\Doctrine\UuidBinaryOrderedTimeType
        commented: false

Server version

Server version must consist of 3 numbers, partial version numer is not allowed.

nettrine.dbal:
  connection:
    serverVersion: '8.0.0' # always use 3 numbers, versions like '8.0' are no longer supported

Cache

doctrine/cache is no longer supported, psr/cache is used instead. This integration allows Nette Cache storages and cache objects in addition to PSR-6 cache pools for cache configuration. See docs for more information.

@jankonas
Copy link
Contributor Author

I am not sure how to make the tests work in PR in other repository, but you can see the tests passing on the fork. The test branch is this fork with ORM repository fork in composer.json to make composer work. This PR works with current ORM and DBAL 3.6.7+ as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant