private static function createModel( $row )
    {
        $table_name = get_called_class();
        
        $model = new $table_name();
        
        $model->setExists( true );
        
        foreach ( $row as $key => $value )
        {
            if ( !is_int($key) )
            {
                $model->$key = $value;
                $model->_snapshot[$key] = $value;
            }
        }
        
        return $model;
    }
private static function createModel( $row )
    {
        $table_name = get_called_class();
        
        $model = new $table_name();
        
        $model->setExists( true );
        
        foreach ( $row as $key => $value )
        {
            if ( !is_int($key) )
            {
                $model->$key = $value;
                $model->_snapshot[$key] = $value;
            }
        }
        
        return $model;
    }
private static function createModel ( $ row ) { $ table_name = get_called_class ( ) ; $ model = new $ table_name ( ) ; $ model -> setExists ( true ) ; foreach ( $ row as $ key => $ value ) { if ( ! is_int ( $ key ) ) { $ model -> $ key = $ value ; $ model -> _snapshot [ $ key ] = $ value ; } } return $ model ; }
Helper function to create and initialize a model
Helper function to create and initialize a model