framework/db/ActiveRecord.php
public static function populateRecord($record, $row)
    {
        $columns = static::getTableSchema()->columns;
        foreach ($row as $name => $value) {
            if (isset($columns[$name])) {
                $row[$name] = $columns[$name]->phpTypecast($value);
            }
        }
        parent::populateRecord($record, $row);
    }
public static function populateRecord($record, $row)
    {
        $columns = static::getTableSchema()->columns;
        foreach ($row as $name => $value) {
            if (isset($columns[$name])) {
                $row[$name] = $columns[$name]->phpTypecast($value);
            }
        }
        parent::populateRecord($record, $row);
    }
public static function populateRecord ( $ record , $ row ) { $ columns = static :: getTableSchema ( ) -> columns ; foreach ( $ row as $ name => $ value ) { if ( isset ( $ columns [ $ name ] ) ) { $ row [ $ name ] = $ columns [ $ name ] -> phpTypecast ( $ value ) ; } } parent :: populateRecord ( $ record , $ row ) ; }
{@inheritdoc}
{