Commit e29aa271 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #156 from schmittjoh/patch-1

[Platform] Allow a string to be passed as type
parents 092cc8ad 43e59103
......@@ -322,15 +322,15 @@ abstract class AbstractPlatform
/**
* Mark this type as to be commented in ALTER TABLE and CREATE TABLE statements.
*
* @param Type $doctrineType
* @param string|Type $doctrineType
* @return void
*/
public function markDoctrineTypeCommented(Type $doctrineType)
public function markDoctrineTypeCommented($doctrineType)
{
if ($this->doctrineTypeComments === null) {
$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