diff --git a/lib/Doctrine/Table.php b/lib/Doctrine/Table.php index 17f849148..112cc2fe4 100644 --- a/lib/Doctrine/Table.php +++ b/lib/Doctrine/Table.php @@ -1357,6 +1357,11 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable return $this->_templates[$template]; } + + public function hasTemplate($template) + { + return isset($this->_templates[$template]); + } public function addTemplate($template, Doctrine_Template $impl) {