protected function _fieldName($field) {
		$regex = '/^[a-z0-9_-]+\.[a-z0-9_-]+$/iS';

		if (strpos($field, '.') !== false && preg_match($regex, $field)) {
			list($first, $second) = explode('.', $field, 2);
			return $second;
		}
		return $field;
	}
protected function _fieldName($field) {
		$regex = '/^[a-z0-9_-]+\.[a-z0-9_-]+$/iS';

		if (strpos($field, '.') !== false && preg_match($regex, $field)) {
			list($first, $second) = explode('.', $field, 2);
			return $second;
		}
		return $field;
	}
protected function _fieldName ( $ field ) { $ regex = '/^[a-z0-9_-]+\.[a-z0-9_-]+$/iS' ; if ( strpos ( $ field , '.' ) !== false && preg_match ( $ regex , $ field ) ) { list ( $ first , $ second ) = explode ( '.' , $ field , 2 ) ; return $ second ; } return $ field ; }
Return the field name from a conditions key.

@param string $field Field or identifier name.
@return string Returns the field name without the table alias, if applicable.
@todo Eventually, this should be refactored and moved to the Query or Schema
class. Also, by handling field resolution in this way we are not handling
cases where query conditions use the same field name in multiple tables.
e.g. Foos.bar and Bars.bar will both return bar.
Return the field name from a conditions key .