Commit c811c2ab authored by Guilherme Blanco's avatar Guilherme Blanco

Merge pull request #88 from arnaud-lb/type-hint-underscore

Allow underscore in type hint
parents 1969bdb9 2328ff32
...@@ -830,7 +830,7 @@ abstract class AbstractSchemaManager ...@@ -830,7 +830,7 @@ abstract class AbstractSchemaManager
*/ */
public function extractDoctrineTypeFromComment($comment, $currentType) public function extractDoctrineTypeFromComment($comment, $currentType)
{ {
if (preg_match("(\(DC2Type:([a-zA-Z0-9]+)\))", $comment, $match)) { if (preg_match("(\(DC2Type:([a-zA-Z0-9_]+)\))", $comment, $match)) {
$currentType = $match[1]; $currentType = $match[1];
} }
return $currentType; return $currentType;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment