Skip to content

Commit

Permalink
Add a deprecation notice for this feature
Browse files Browse the repository at this point in the history
It can be replaced by comment feature of the doctrine
Type object.
  • Loading branch information
mikeSimonson committed Apr 13, 2017
1 parent 99a62a7 commit e978431
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ConnectionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit e978431

Please sign in to comment.