mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +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
|
* @access public
|
||||||
*/
|
*/
|
||||||
function getColumnType($column) {
|
function getColumnType($column) {
|
||||||
$db =& ConnectionManager::getDataSource($this->useDbConfig);
|
|
||||||
$cols = $this->schema();
|
$cols = $this->schema();
|
||||||
$model = null;
|
$model = null;
|
||||||
|
|
||||||
$column = str_replace(array($db->startQuote, $db->endQuote), '', $column);
|
|
||||||
|
|
||||||
if (strpos($column, '.')) {
|
if (strpos($column, '.')) {
|
||||||
list($model, $column) = explode('.', $column);
|
list($model, $column) = explode('.', $column);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue