Skip to content

Commit 4bd3cda

Browse files
committed
- Added NTextType to support NTEXT fields
1 parent 500d556 commit 4bd3cda

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

Doctrine/Types/NTextType.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
3+
4+
namespace MediaMonks\MssqlBundle\Doctrine\Types;
5+
6+
use Doctrine\DBAL\Types\Type;
7+
use Doctrine\DBAL\Platforms\AbstractPlatform;
8+
9+
class NTextType extends Type
10+
{
11+
const NTEXT = 'ntext';
12+
13+
/**
14+
* {@inheritdoc}
15+
*/
16+
public function getName()
17+
{
18+
return self::NTEXT;
19+
}
20+
21+
/**
22+
* {@inheritdoc}
23+
*/
24+
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
25+
{
26+
return 'NTEXT';
27+
}
28+
29+
/**
30+
* {@inheritdoc}
31+
*/
32+
public function requiresSQLCommentHint(AbstractPlatform $platform)
33+
{
34+
return true;
35+
}
36+
}

0 commit comments

Comments
 (0)