From e978431b7117bdce537b8c3129c5901c719deb12 Mon Sep 17 00:00:00 2001 From: mike Date: Wed, 22 Feb 2017 15:26:12 +0100 Subject: [PATCH] Add a deprecation notice for this feature It can be replaced by comment feature of the doctrine Type object. --- ConnectionFactory.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ConnectionFactory.php b/ConnectionFactory.php index a2a41380d..323f6c1a5 100644 --- a/ConnectionFactory.php +++ b/ConnectionFactory.php @@ -84,6 +84,9 @@ private function initializeTypes() Type::addType($type, $typeConfig['class']); } if ($typeConfig['commented']) { + @trigger_error( + sprintf('The commented option of the type configuration is deprecated since DoctrineBundle 1.7.' . + 'Use the feature of the Type class instead. (in %s)', $type), E_USER_DEPRECATED); $this->commentedTypes[] = $type; } }