From 532dea0dd2810da98d448559c54dfaa3ed8fa1be Mon Sep 17 00:00:00 2001 From: romanb Date: Tue, 11 Dec 2007 15:25:56 +0000 Subject: [PATCH] Fixed #662 --- lib/Doctrine/Table.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/Doctrine/Table.php b/lib/Doctrine/Table.php index 8e79f7aed..819925c7c 100644 --- a/lib/Doctrine/Table.php +++ b/lib/Doctrine/Table.php @@ -1064,6 +1064,15 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable { return isset($this->_columns[$columnName]); } + + /** + * hasField + * @return boolean + */ + public function hasField($fieldName) + { + return isset($this->_columnNames[$fieldName]); + } /** * sets the connection for this class