diff --git a/lib/Doctrine/Table.php b/lib/Doctrine/Table.php index 8dc336bbd..079859732 100644 --- a/lib/Doctrine/Table.php +++ b/lib/Doctrine/Table.php @@ -294,6 +294,16 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable } $this->repository = new Doctrine_Table_Repository($this); } + /** + * getTemplates + * returns all templates attached to this table + * + * @return array an array containing all templates + */ + public function getTemplates() + { + return $this->_templates; + } /** * export * exports this table to database based on column and option definitions