Skip to content

Commit

Permalink
Merge pull request #156 from schmittjoh/patch-1
Browse files Browse the repository at this point in the history
[Platform] Allow a string to be passed as type
  • Loading branch information
beberlei committed May 27, 2012
2 parents 092cc8a + 43e5910 commit e29aa27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,15 +322,15 @@ public function isCommentedDoctrineType(Type $doctrineType)
/**
* 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;
}

/**
Expand Down

0 comments on commit e29aa27

Please sign in to comment.