From d3e4b2c91272f67b60d44ee0ca1c1b3dcb9aa1e0 Mon Sep 17 00:00:00 2001 From: nightfreak Date: Mon, 3 Sep 2007 12:08:36 +0000 Subject: [PATCH] small bugfix --- lib/Doctrine/Export/Mysql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Export/Mysql.php b/lib/Doctrine/Export/Mysql.php index cbee9ac4f..610fa5712 100644 --- a/lib/Doctrine/Export/Mysql.php +++ b/lib/Doctrine/Export/Mysql.php @@ -502,7 +502,7 @@ class Doctrine_Export_Mysql extends Doctrine_Export ? null : $this->valid_default_values[$field['type']]; if ($field['default'] === '' - && ($conn->getAttribute(Doctrine::ATTR_PORTABILITY) & Doctrine::PORTABILITY_EMPTY_TO_NULL) + && ($this->conn->getAttribute(Doctrine::ATTR_PORTABILITY) & Doctrine::PORTABILITY_EMPTY_TO_NULL) ) { $field['default'] = ' '; }