Skip to content

Instantly share code, notes, and snippets.

@odino
Created July 18, 2010 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odino/480384 to your computer and use it in GitHub Desktop.
Save odino/480384 to your computer and use it in GitHub Desktop.
// FIXME: workaround for lime! Lime sucks so much
// proper code $content_type = $this->object->getTemplate()
if ($this->object->isNew())
{
$content_type = new QreddCckTemplateFlat;
}
else
{
$content_type = Doctrine::getTable('QreddCckTemplateFlat')->find($this->object->content_type_id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment