Skip to content

fix the "doctrine file uploads" cookbook examples #2118

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

Closed
wants to merge 1 commit into from

Conversation

mahmouds
Copy link
Contributor

@mahmouds mahmouds commented Jan 9, 2013

I did a rename on "filenameForRemove" to "temp" as it holds only the extension of the file in the "Using the id as the filename" section but I am ok with any other suggestions.

@mahmouds mahmouds closed this Jan 9, 2013
@mahmouds mahmouds reopened this Jan 9, 2013
/**
* Set file
*
* @param \Symfony\Component\HttpFoundation\File\UploadedFile $file
Copy link
Member

Choose a reason for hiding this comment

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

You should add this namespace in a use statement in the beginning of the code example, remove the namespace here and add a typehint for the PHP parameter.

@mahmouds
Copy link
Contributor Author

Thanks @wouterj for your comments, I have just opened a new pull request againest 2.0 branch and added the fixes to it.
see #2120

@mahmouds mahmouds closed this Jan 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants