Skip to content

Commit

Permalink
mark Doctrine's ExtendedDataType as commented (closes schmittjoh#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmittjoh committed Jul 26, 2012
1 parent 1f6d885 commit 4d2237d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions JMSPaymentCoreBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ public function boot()
if (false === Type::hasType(ExtendedDataType::NAME)) {
ExtendedDataType::setEncryptionService($this->container->get('payment.encryption_service'));
Type::addType(ExtendedDataType::NAME, 'JMS\Payment\CoreBundle\Entity\ExtendedDataType');

if ($this->container->has('doctrine.dbal.default_connection')) {
$platform = $this->container->get('doctrine.dbal.default_connection')->getDatabasePlatform();
$platform->markDoctrineTypeCommented(Type::getType(ExtendedDataType::NAME));
}
}
}

Expand Down

0 comments on commit 4d2237d

Please sign in to comment.