-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Improve docs: INSTANCE OF needs class metadata as parameter value #7963
Conversation
$query->setParameter(1, $em->getClassMetadata(CompanyEmployee::class); | ||
|
||
.. note:: | ||
To use a class as parameter, you have to bind it's class metadata: ``$query->setParameter(0, $em->getClassMetadata(CompanyEmployee::class);``. |
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.
it should be its
as it's a possessive
Please squash your commits and please improve your commit message according to the contributing guide. Also, please associate your email address with your Github account, or change the |
Also, this should probably target 2.7 or 2.8.x otherwise your changes will not appear in the docs people actually read until 3.0 is released. |
@greg0ire Yes, that should be done of course. So should I create a new fork of the branch '2.7'? |
I applied my note to a branch basing on 2.7, and pushed it here https://github.com/flaushi/orm/tree/note-instance-of (commits squashed, email address changed) Can you change the merge request or should I start a new one? |
You can reset your |
I am too unexperienced with this git s**t. Argh, now I have all my messages twice 😩. |
Please just |
I think that's it. One commit, with email address. Anything else required from my side? You spoke about merging...🤷♂️ |
Your commit does not seem to start from 2.7 |
If you can find your commit in the git history, try |
I'm on the symfony-dev slack if you want to chat |
It looks sane now :) |
e531738
to
66c95a6
Compare
What's needed to get this merged? |
One more approval I'd say. |
…r value for the INSTANCE OF DQL expression
As discussed on slack and in relation to #6483, one could clarify in the docs that it's not enough to just bind a class name by its FQCN.