Commit 43e59103 authored by Johannes's avatar Johannes

[Platform] Allow a string to be passed as type

parent 092cc8ad
...@@ -322,15 +322,15 @@ abstract class AbstractPlatform ...@@ -322,15 +322,15 @@ abstract class AbstractPlatform
/** /**
* Mark this type as to be commented in ALTER TABLE and CREATE TABLE statements. * Mark this type as to be commented in ALTER TABLE and CREATE TABLE statements.
* *
* @param Type $doctrineType * @param string|Type $doctrineType
* @return void * @return void
*/ */
public function markDoctrineTypeCommented(Type $doctrineType) public function markDoctrineTypeCommented($doctrineType)
{ {
if ($this->doctrineTypeComments === null) { if ($this->doctrineTypeComments === null) {
$this->initializeCommentedDoctrineTypes(); $this->initializeCommentedDoctrineTypes();
} }
$this->doctrineTypeComments[] = $doctrineType->getName(); $this->doctrineTypeComments[] = $doctrineType instanceof Type ? $doctrineType->getName() : $doctrineType;
} }
/** /**
......
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