Yii active record, and user-defined types in postgres

Really like postgres for the richest functionality, including user-defined types. I wonder how works with Active Record in yii, CDbCriteria in particular.
October 3rd 19 at 03:33
1 answer
October 3rd 19 at 03:35
Solution
Judging by the source code of all user-defined data types are transferred to string

protected function extractType($dbType)
{
 if(strpos($dbType,'[')!==false || strpos($dbType,'char')!==false || strpos($dbType,'text')!==false)
$this->type='string';
 else if(strpos($dbType,'bool')!==false)
$this->type='boolean';
 else if(preg_match('/(real|float|double)/',$dbType))
$this->type='double';
 else if(preg_match('/(integer|oid|serial|smallint)/',$dbType))
$this->type='integer';
else
$this->type='string';
 }

Find more questions by tags Active RecordPHPPostgreSQLYii