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