Development

Changeset 3381

You must first sign up to be able to contribute.

Changeset 3381

Show
Ignore:
Timestamp:
02/01/07 08:30:37 (2 years ago)
Author:
fabien
Message:

fixed schema.yml with a_column: {default: NULL} (closes #1380 - patch from Massimo.Zaniboni)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/addon/propel/sfPropelDatabaseSchema.class.php

    r3159 r3381  
    406406    if (in_array($key, $booleans)) 
    407407    { 
    408       return ($value == 1) ? 'true' : 'false'; 
     408      return $value == 1 ? 'true' : 'false'; 
    409409    } 
    410410    else 
    411411    { 
    412       return $value; 
     412      return is_null($value) ? 'null' : $value; 
    413413    } 
    414414  }