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

Fix documentation for uploadFromFile #2284

Merged
merged 1 commit into from
Mar 15, 2021
Merged

Conversation

rrajkomar
Copy link
Contributor

Q A
Type improvement
BC Break no
Fixed issues #2283

Summary

Fixed argument order
Fixed example with Metadata object used instead of UpdloadOptions containing the metadata

Copy link
Member

@SenseException SenseException left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good catch.

Please change the base branch to 2.2.x, because as far as I understood @malarzm. 2.2.x is still the minimum supported branch despite not being the default branch.

There also a call of $repository->uploadFromFile() on line 239 you've missed.

@malarzm malarzm changed the base branch from 2.3.x to 2.2.x February 4, 2021 20:56
@malarzm malarzm changed the base branch from 2.2.x to 2.3.x February 4, 2021 20:56
@malarzm
Copy link
Member

malarzm commented Feb 4, 2021

@SenseException I'm going to change the default branch now, forgot to do that yesterday :)

@rrajkomar I tried to change the target branch for you but it produced additional commits. You'll need to rebase your work atop 2.2.x

@malarzm malarzm linked an issue Feb 4, 2021 that may be closed by this pull request
@malarzm malarzm added this to the 2.2.1 milestone Feb 4, 2021
@rrajkomar rrajkomar changed the base branch from 2.3.x to 2.2.x February 8, 2021 19:06
@rrajkomar
Copy link
Contributor Author

rrajkomar commented Feb 8, 2021

@malarzm. This should do it.

@SenseException
Copy link
Member

Please also fix the other $repository->uploadFromFile('image.jpg', parts.

@rrajkomar
Copy link
Contributor Author

@SenseException I think I fixed them all this time. Coudn't find any other concerned reference of the method.

@malarzm
Copy link
Member

malarzm commented Mar 15, 2021

@SenseException with @alcaeus' approval I'm marking this as good to go.

Thanks @rrajkomar!

@malarzm malarzm merged commit 6c0b48a into doctrine:2.2.x Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doc Error : GridFSRepository::uploadFromFile
4 participants