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. *