Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removing use of subclass method 'fullTableName()' in Datasource super…
…class. Fixes #100.
  • Loading branch information
jperras committed Jan 14, 2010
1 parent 88a09cf commit 4d1f6b8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cake/libs/model/datasources/datasource.php
Expand Up @@ -123,9 +123,9 @@ class DataSource extends Object {
var $_queriesLog = array();

/**
* Maximum number of items in query log, to prevent query log taking over
* too much memory on large amounts of queries -- I we've had problems at
* >6000 queries on one system.
* Maximum number of items in query log
*
* This is to prevent query log taking over too much memory.
*
* @var int Maximum number of queries in the queries log.
* @access protected
Expand Down Expand Up @@ -270,7 +270,8 @@ function describe(&$model) {
if ($this->cacheSources === false) {
return null;
}
$table = $this->fullTableName($model, false);
$table = $model->tablePrefix . $model->table;

if (isset($this->__descriptions[$table])) {
return $this->__descriptions[$table];
}
Expand Down Expand Up @@ -374,7 +375,7 @@ function update(&$model, $fields = null, $values = null) {
* To-be-overridden in subclasses.
*
* @param Model $model The model class having record(s) deleted
* @param mixed $id Primary key of the model
* @param mixed $id Primary key of the model
* @access public
*/
function delete(&$model, $id = null) {
Expand Down Expand Up @@ -489,7 +490,7 @@ function __cacheDescription($object, $data = null) {
* @param array $data Array of data with values that will be inserted in placeholders.
* @param string $association Name of association model being replaced
* @param unknown_type $assocData
* @param Model $model Instance of the model to replace $__cakeID__$
* @param Model $model Instance of the model to replace $__cakeID__$
* @param Model $linkModel Instance of model to replace $__cakeForeignKey__$
* @param array $stack
* @return string String of query data with placeholders replaced.
Expand Down

0 comments on commit 4d1f6b8

Please sign in to comment.