Show
Ignore:
Timestamp:
08/18/08 21:27:22 (19 months ago)
Author:
guilhermeblanco
Message:

fixed #1280. Fixed Export that never deals with default=null in all DBMS. Also fixed $entity->Relation = null; situation that cleans the reference.
Now we have unset and unlink that deletes related object and = null that only defines the default value when save() is called.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/lib/Doctrine/DataDict/Pgsql.php

    r4768 r4778  
    614614                $field['default'] = empty($field['notnull']) ? null : 0; 
    615615            } 
    616             $default = ' DEFAULT '.$this->conn->quote($field['default'], $field['type']); 
     616 
     617            $default = ' DEFAULT ' . (is_null($field['default']) 
     618                ? 'NULL' 
     619                : $this->conn->quote($field['default'], $field['type'])); 
    617620        } 
    618621        /**