diff --git a/lib/Doctrine/Import/Builder.php b/lib/Doctrine/Import/Builder.php index eb0dd609c..ca65c79cf 100644 --- a/lib/Doctrine/Import/Builder.php +++ b/lib/Doctrine/Import/Builder.php @@ -405,7 +405,7 @@ END; $setUp = $this->buildSetUp($options, $columns, $relations); } - $accessors = true === true ? $this->buildAccessors($options, $columns):null; + $accessors = (isset($options['generate_accessors']) && $options['generate_accessors'] === true) ? $this->buildAccessors($options, $columns):null; $content = sprintf(self::$tpl, $abstract, $className,