Commit 2328ff32 authored by Arnaud Le Blanc's avatar Arnaud Le Blanc

allow underscore in type hint

parent 23d2950c
...@@ -789,7 +789,7 @@ abstract class AbstractSchemaManager ...@@ -789,7 +789,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