Development

Changeset 7928

You must first sign up to be able to contribute.

Changeset 7928

Show
Ignore:
Timestamp:
03/17/08 09:28:36 (6 months ago)
Author:
francois
Message:

[1.1] Fixed problem with YAML schema generation from XML with booleans (closes #3124)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/plugins/sfPropelPlugin/lib/propel/sfPropelDatabaseSchema.class.php

    r7899 r7928  
    915915    foreach ($hash as $attribute => $value) 
    916916    { 
    917       $attributes[$attribute] = (string) $value; 
     917      $value = (string) $value; 
     918      if (in_array($value, array('true', 'on'))) 
     919      { 
     920        $value = true; 
     921      } 
     922      elseif (in_array($value, array('false', 'off'))) 
     923      { 
     924        $value = false; 
     925      } 
     926      $attributes[$attribute] = $value; 
    918927    } 
    919928