Skip to content

Instantly share code, notes, and snippets.

@odino
Created July 18, 2010 13:04
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/480386 to your computer and use it in GitHub Desktop.
Save odino/480386 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())
{
$this->object->setTemplate(Doctrine::getTable('QreddCckTemplateFlat')->find($this->object->content_type_id));
}
$content_type = $this->object->getTemplate();
foreach($content_type->getAdditionalFields() as $field)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment