mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
1a6a0d1788
commit
d5b21b68a5
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue