public function hasDuplicateValue($fieldName)
{
$this->cacheQueries = false;
$duplication = $this->find('all', array('fields' => array("{$this->alias}.{$fieldName}"), 'group' => array("{$this->alias}.{$fieldName} HAVING COUNT({$this->alias}.id) > 1")));
return !empty($duplication);
}