From 8ee4d75b696b07b09610d8e43109935f81b1fe5a Mon Sep 17 00:00:00 2001 From: zYne Date: Thu, 26 Jul 2007 19:52:12 +0000 Subject: [PATCH] --- lib/Doctrine/Import/Mysql.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/Import/Mysql.php b/lib/Doctrine/Import/Mysql.php index 366735fb8..20bc75524 100644 --- a/lib/Doctrine/Import/Mysql.php +++ b/lib/Doctrine/Import/Mysql.php @@ -122,6 +122,8 @@ class Doctrine_Import_Mysql extends Doctrine_Import $decl = $this->conn->dataDict->getPortableDeclaration($val); + $values = isset($decl['values']) ? $decl['values'] : array(); + $description = array( 'name' => $val['field'], 'type' => $decl['type'][0], @@ -130,7 +132,7 @@ class Doctrine_Import_Mysql extends Doctrine_Import 'length' => $decl['length'], 'fixed' => $decl['fixed'], 'unsigned' => $decl['unsigned'], - 'values' => $decl['values'], + 'values' => $values, 'primary' => (strtolower($val['key']) == 'pri'), 'default' => $val['default'], 'notnull' => (bool) ($val['null'] != 'YES'),