reverting changes to model from [7857], start/endQuote added to datasource

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7860 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-11-10 19:53:04 +00:00
parent 1a6a0d1788
commit d5b21b68a5

View file

@ -899,9 +899,12 @@ class Model extends Overloadable {
* @access public
*/
function getColumnType($column) {
$db =& ConnectionManager::getDataSource($this->useDbConfig);
$cols = $this->schema();
$model = null;
$column = str_replace(array($db->startQuote, $db->endQuote), '', $column);
if (strpos($column, '.')) {
list($model, $column) = explode('.', $column);
}