mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
removing startQuote/endQuote from Model::getColumnType() closes #5719
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7857 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
9f7e3a3060
commit
aed9872ce2
1 changed files with 0 additions and 3 deletions
|
@ -899,12 +899,9 @@ 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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue