Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Updated the name of the renamed methods in the other examples.
  • Loading branch information
tristanbes committed Jul 20, 2011
commit 6d92dd6c14940b198e33d6a9013c2e8d54e1040e
4 changes: 2 additions & 2 deletions cookbook/doctrine/file_uploads.rst
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Next, refactor the ``Document`` class to take advantage of these callbacks::
*/
public function removeUpload()
{
if ($file = $this->getFullPath()) {
if ($file = $this->getAbsolutePath()) {
unlink($file);
}
}
Expand Down Expand Up @@ -342,7 +342,7 @@ property, instead of the actual filename::
*/
public function removeUpload()
{
if ($file = $this->getFullPath()) {
if ($file = $this->getAbsolutePath()) {
unlink($file);
}
}
Expand Down