Skip to content

Commit

Permalink
Use the accessor method instead of the property.
Browse files Browse the repository at this point in the history
This prevents null tables being generated.
  • Loading branch information
markstory committed Oct 20, 2013
1 parent 7495ac7 commit fc23f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cake/ORM/Table.php
Expand Up @@ -261,7 +261,7 @@ public function schema($schema = null) {
if ($this->_schema === null) {
$this->_schema = $this->connection()
->schemaCollection()
->describe($this->_table);
->describe($this->table());
}
return $this->_schema;
}
Expand Down

0 comments on commit fc23f74

Please sign in to comment.