Skip to content

Commit

Permalink
Add name() to Table class.
Browse files Browse the repository at this point in the history
This allows index creation in sqlite and is a nice accessor to have.
  • Loading branch information
markstory committed May 20, 2013
1 parent d9a6f37 commit d5ceb63
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/Cake/Database/Schema/Table.php
Expand Up @@ -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.
*
Expand Down

0 comments on commit d5ceb63

Please sign in to comment.