-
Notifications
You must be signed in to change notification settings - Fork 45
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
feat: allow doctrine/orm 3, doctrine/dbal 4 (WIP) #265
Conversation
6e370be
to
b75c271
Compare
Now an installable set is available. There are multiple errors.
|
Just looking at the test fixtures, I don't have a good solution here. But, all the |
tests/App/config.yml
Outdated
@@ -29,15 +29,10 @@ doctrine: | |||
connection: default | |||
mappings: | |||
LiipAcme: | |||
type: php | |||
type: attribute |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need support for annotation mapping here as well, otherwise you'll need to skip tests on PHP 7.4 builds.
tests/App/config.yml
Outdated
dir: "%kernel.project_dir%/Entity" | ||
prefix: 'Liip\Acme\Tests\App\Entity' | ||
is_bundle: false | ||
LiipAcmeYml: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the intent is to test with multiple mapping drivers, converting to XML instead of dropping the YAML mapping would be a good choice (you should be able to use the CLI tools when ORM 2.x is installed to help with this).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got the message, that the yamlDriver ist not available anymore.
Good point with the XMLDriver as replacement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember why tests used annotations and YAML config, we can drop it and just assume that Doctrine read the configuration properly.
@mbabker Thanks for the input. My primary goal is to test my bundle via this bundle ;) |
@@ -1,78 +1,80 @@ | |||
{ | |||
"name": "liip/test-fixtures-bundle", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please restore the original indentation or do this change in another PR.
I will come back to this as soon, as i have some free time. |
You can rebase it on Or apply these changes from the |
I think it has been partially fixed by this PR:
|
b75c271
to
a70ede3
Compare
thanks @alexislefebvre |
jackalope/jackalope-doctrine-dbal does not yet support dbal 4 (but they are working on it)