From 95e77e5ca253a30d84cfc141dccf4afe851015bc Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 19 Oct 2013 19:49:38 -0400 Subject: [PATCH] Fix mistake where table names would not be generated correctly. --- Cake/ORM/Table.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Cake/ORM/Table.php b/Cake/ORM/Table.php index ed68dde1215..aa86d126830 100644 --- a/Cake/ORM/Table.php +++ b/Cake/ORM/Table.php @@ -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']); }