Skip to content

Instantly share code, notes, and snippets.

@odino
Created August 25, 2010 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save odino/549438 to your computer and use it in GitHub Desktop.
Save odino/549438 to your computer and use it in GitHub Desktop.
public function getImage()
{
$asset = Doctrine::gettable('Asset')->find($this->thumbnail_id);
if ($asset)
{
return $asset->getId();
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment