From ed8e90b8df7ba64747f033d1394521916644da3d Mon Sep 17 00:00:00 2001 From: zYne Date: Fri, 17 Aug 2007 21:21:52 +0000 Subject: [PATCH] --- lib/Doctrine/Table.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/Doctrine/Table.php b/lib/Doctrine/Table.php index 8dc336bbd..9f83eddf3 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