-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
Upgrading to doctrine/orm 2.7.3 with doctrine/common 3.0 causes Class not found errors #1197
Comments
Not sure it has to do with Also , a good way to find the offending package would be to grep the name in the error message in |
@greg0ire It's So, my suggestion was to not have the At this point, I'm assuming it's simply a conflict between I included the only stacktrace that I had available. The errors go away when I exclude In the end, I had to exclude |
The issue is with other Doctrine packages, they are the one that should be fixed.
What I meant by that was of course not that you wrote something wrong by hand in your cache. The cache is generated, and it's not generated from
Yes, more precisely, from DoctrineBundle
Can you please do that? I think it will show the wrong name in
Can you please not ignore my questions? It's really rude. |
@greg0ire Sorry, I wasn't ignoring your questions, I just got lost in my own thoughts and attempts to explain, since I believed that I supplied more than enough information in my initial post. Which I am now having to reiterate. The error message appears to be a core PHP error during autoloading, which would appear to say that the class is missing. Either from not being included in the autoload definitions or something else. Also, the message "Class 'X' not found" seems to be very generic. When I looked in the files on the stacktrace, I found no mention of the class in question. I then also did a full As to #1146, I don't really know. From what I see, that's from a doctrine:1.12.x branch PR? I'm on When I said I did an update to doctrine/*, I mean I literally did a I do know that when I did the above, the error goes away. So maybe there is an issue, as I have stated, to allowing I would appreciate it if you did not ignore me stating this multiple times that the issue goes away when I do the version limit. That also is really rude. I spent multiple hours trying to track down this issue that came down to a simple enough thing, that you then appear to have dismissed without much thought. I would appreciate it if you read what I have said instead of glancing over it. I really do appreciate what the Doctrine team does and the work that you all do, but when someone reports an issue, please do not simply dismiss it out of hand. |
The cache calls code from vendor, so that's expected. The
If you look at the only commit in there, you will see that it landed in 2.1.0, so you should in fact be good. I was expecting the change in orm.xml to fix your issue, but apparently it doesn't. I guess a better grep would then be
Maybe indeed, or maybe not, you may run
That wasn't a question was it? Do all your sentences warrant an answer? Only questions do. You asked one, and I answered it. That wasn't good enough for you apparently, you want the solution now, by having me doing all the work, you don't want to have to do additional investigating. You're trying to get back at me for calling you rude, that's all.
It's great, but you will certainly understand that it will be hard for me to be impressed by that after all the hours I spend on Doctrine… And you're right I appear to have dismissed it without much though. In reality, I have kept it in my mind for when the solution is clearer. Wouldn't want to spend to much brainpower investigating all potential sources when the issue can be narrowed down with a simple
Do you? Do you really? Would you call yourself grateful for getting help directly from Doctrine on a Saturday? Or are you in fact demanding to be helped as if you were a paying customer, complaining that my answer is not good enough for your taste? Fair warning: either we both re-focus on the problem or I lock this conversation as "too heated". So you have the choice between "help that is not perfect" or "no help" |
I'll address this first since it appears poignant. Yes, I absolutely appreciate all the work that the Doctrine team does, yourself included. I am not, nor would I ever, demand to be helped; on a Saturday or any other time for an open-source project that is supplied free of charge to the community. I have been a benefactor, as well as a contributor, for more than a decade of this project. I had no expectations of receiving this speedy of a response, for which I am very grateful. I simply did not expect to be called "rude" in a response, when all I did was not include an answer to all of your questions in my response. For which, I again apologize. Now, with that out of the way, I am more than happy to refocus on the issue at hand. To the However, I ran it again to double-check. I ran it with both
I ran the suggested
I then removed the
When I ran
|
Apology accepted. On my end, my answers may be far from perfect, but, you will get speedy support indeed, so that something, I hope it balances it out for you. Let's start over.
Nice work. There is the issue. Can you try running |
You can also try adding a constraint forcing the installation of v2.1.0 of the bundle, but I'm not sure that will work. If it does work, I guess it will result in the downgrade of some other package. |
|
I attempted to add the constraint for
|
I believe this will fix your issue: #1181 You can carry the PR if you want it to go faster. |
Looks good. My projects don't explicitly require Thank you very much for the assistance, @greg0ire. |
I just released 2.1.1, that should fix the issue. |
Awesome! Thank you very much! |
Sorry, meant to add this yesterday. I was able to successfully upgrade |
Off-topic: Thank you both (greg0ire/trickeyone) for showing this kind of fair-play and for calming a heated arguments' thread - it's so uncommon and nice, that it ~blew my mind! (it shouldn't have, because this kind of behavior should be the norm, but unfortunately, it isn't - either on Github or Reddit or HN or wherever...) |
* Remove timecop and replace DateTimeImmutable by Chronos (same interface) * fix tests errors * Add delta to integration/acceptance test for token expiration * fix chronos in require dependencies * Change Chronos by Carbon * add php 8 and symfony 5.2 * drop support of php 7.2 and add some fixes in Dockerfile * add xdebug mode coverage * bump php cs fixer version * fix doctrine common doctrine/DoctrineBundle#1197 * fix php cs fixer, disable no_trailing_whitespace_in_string new rule * fix doctrine mapping exception https://github.com/doctrine/orm/releases/tag/2.8.1 * fix oauth2-server enforcement with client without redirect_uri https://github.com/thephpleague/oauth2-server/releases/tag/8.2.4 * drop support of doctrine bundle 1.8 * revert drop of php 7.2
how to install old version Doctrine ? |
After issuing a composer update on doctrine/* on a newly upgrade Symfony 5 project, during the cache warmup I'm getting the below error when using
doctrine/common
3.0If I force
doctrine/common
to^2.7 <3.0
, the errors go away. Maybedoctrine/orm:2.x
shouldn't bedoctrine/common:^2.11 || ^3.0
just yet?The text was updated successfully, but these errors were encountered: