Skip to content

Commit 14d7441

Browse files
authored
Merge pull request #388 from eigan/eg-deprecated-json-type
[FIX] Deprecate and remove usage of our custom JsonType
2 parents 79d6943 + f4559bb commit 14d7441

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

config/doctrine.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@
108108
|--------------------------------------------------------------------------
109109
*/
110110
'custom_types' => [
111-
'json' => LaravelDoctrine\ORM\Types\Json::class
112111
],
113112
/*
114113
|--------------------------------------------------------------------------

src/Types/Json.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* \Doctrine\DBAL\Types\Type::addType('json', '\Path\To\Custom\Type\Json');
1515
* @link http://www.doctrine-project.org/jira/browse/DBAL-446
1616
* @link https://github.com/doctrine/dbal/pull/655
17+
*
18+
* @deprecated Replaced by JsonType in Doctrine.
19+
* You can safely remove usage of this type in your 'custom_type' configuration.
1720
*/
1821
class Json extends JsonArrayType
1922
{

0 commit comments

Comments
 (0)