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

Changed reflections to property accessors in uploadable. #8

Merged
merged 2 commits into from
Jul 16, 2013

Conversation

beregond
Copy link
Contributor

Fixes problems with proxies.

@norberttech
Copy link
Contributor

👍
@chives ?

@@ -70,14 +80,19 @@ public function getFile()
return $this->file;
}

public function getFileKey()
public function deleteFile()
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't it be removeFile() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well it's not intened to be used by property accessor, but to allow to explicite file deletion (if that's what bothers you).

Copy link
Member

Choose a reason for hiding this comment

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

It doesn't bother be in context of property accessor but rather in sense of some naming convention used by Symfony2 - http://symfony.com/doc/current/contributing/code/conventions.html. We should give not only good but superior examples in documentation because they will be often used (read: copy-pasted) by end users :)

chives added a commit that referenced this pull request Jul 16, 2013
Changed reflections to property accessors in uploadable.
@chives chives merged commit 9a16538 into fsi-open:master Jul 16, 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.

None yet

3 participants