Skip to content

Commit

Permalink
Fix mistake where table names would not be generated correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 20, 2013
1 parent 35b50b1 commit 95e77e5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Cake/ORM/Table.php
Expand Up @@ -130,10 +130,9 @@ class Table {
* @return void
*/
public function __construct(array $config = []) {
if (empty($config['table'])) {
$config['table'] = Inflector::tableize(get_class($this));
if (!empty($config['table'])) {
$this->table($config['table']);
}
$this->table($config['table']);
if (!empty($config['alias'])) {
$this->alias($config['alias']);
}
Expand Down

0 comments on commit 95e77e5

Please sign in to comment.