From d5ceb6303f87fb0a70af7963845d413a09540859 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Sun, 19 May 2013 22:29:42 -0400 Subject: [PATCH] Add name() to Table class. This allows index creation in sqlite and is a nice accessor to have. --- lib/Cake/Database/Schema/Table.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/Cake/Database/Schema/Table.php b/lib/Cake/Database/Schema/Table.php index d7533020307..c3303d0a36f 100644 --- a/lib/Cake/Database/Schema/Table.php +++ b/lib/Cake/Database/Schema/Table.php @@ -128,6 +128,15 @@ public function __construct($table, $columns = array()) { } } +/** + * Get the name of the table. + * + * @return string + */ + public function name() { + return $this->_table; + } + /** * Add a column to the table. *