From 1e606d1ed31589bf6f83b554a99408a7730e4576 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Sat, 17 Jan 2015 04:08:12 +0100 Subject: [PATCH] #1178 - adding note about `ClassMetadataInfo#getTypeOfColumn()` being unreliable/dangerous --- lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php index 769b80f25..bbfae15f0 100644 --- a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php +++ b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php @@ -1998,7 +1998,10 @@ class ClassMetadataInfo implements ClassMetadata * * @param string $columnName * - * @return \Doctrine\DBAL\Types\Type + * @return \Doctrine\DBAL\Types\Type|string|null + * + * @deprecated this method is bogous and unreliable, since it cannot resolve the type of a column that is + * derived by a referenced field on a different entity. */ public function getTypeOfColumn($columnName) {