Check if parameter table has auto-increment primary key by using cached method.

@param	string	Name of table to check auto-increment flag.

@return	bool
326440
public function isAutoIncrement($tableName) {

		$fields = $this->describeTable($tableName);
		
		foreach ($fields as $field) {
			if ('auto_increment' == $field->Extra) {
				return TRUE;
			}
		}
		
		return FALSE;
		
	}
43240
public function hasParameter(string $name): bool {
		foreach ($this->parameters as $param) {
			if ($param->getName() == $name) {
				return true;
			}
		}

		return false;
	}
109071
public boolean hasTable(String name) {
        Table table = getCatalogContext().tables.get(name);
        return (table!=null);
    }
1066589
public function hasIndex($name)
    {
        $indexes = $this->getIndexes();

        foreach ($indexes as $index) {
            if ($index->Key_name == $name) {
                return true;
            }
        }

        return false;
    }
950252
public static function existe($name, $table = null)
    {
        $name = self::table($name);
        //
        // > I don't know why i put this
        $table = is_null($table) ? Config::get('database.database') : $table;
        //
        $i = Database::count(
                "select * FROM information_schema.tables WHERE table_schema ='".$table."' AND table_name = '".$name."' LIMIT 1;"
            );
        //
        return ($i > 0) ? true : false;
    }
752880
public function hasColumn($name)
    {
        $name = $this->filterInputColumn($name);

        return in_array($name, $this->getFields());
    }
1232681
protected function filterKey($table, $name)
    {
        if (!$this->options[self::OPTION_FILTER_KEY]) {
            return false;
        }
        $primaryKey = $table->getPrimaryKey();
        if (!is_array($primaryKey)) {
            $primaryKey = [$primaryKey];
        }
        return in_array($name, $primaryKey);
    }
55603
public function isNull($name): bool
    {
        if ($this->contains($name) == false) {
            return true;
        }

        $value = $this->record[$name];

        return ($value == null);
    }
364841
public function __isset(string $name)
	{
		if(isset($this->columns[$name]) || isset($this->related[$name]))
		{
			return true;
		}

		return $this->isRelation($name) && $this->getValue($name) !== null;
	}
694286
public function __isset($name)
    {
        // If the key was loaded, return true
        if (array_key_exists($name, $this->attributes)) {
            return true;
        }

        // If it is a not loaded relation, return true
        if ($this->isRelation($name)) {
            return true;
        }

        // At least return true if this key can be lazy loaded
        return $this->isLazyLoadKey($name);
    }
1062651
public function has($name)
    {
        if (isset($this->names[$name])) {
            return true;
        }

        $normalized = $this->normalizeName($name);

        if (isset($this->names[$normalized])) {
            return true;
        }

        foreach ($this->entries as $key => $entry) {
            if ($entry['type'] === self::ENTRY_TYPE_ABSTRACT_FACTORY && $this->hasAbstract($name, $key, $entry)) {
                return true;
            }
        }

        return false;
    }
1214561
public function has($name)
    {
        if (!is_array($name)) {
            return isset($this->_columns[$name]);
        }
        return array_intersect($name, array_keys($this->_columns)) === $name;
    }
111204
function hasAttribute( $name )
    {
        switch ( $name )
        {
            case "item":
            case "key":
            case "index":
            case "number":
            case "sequence":
            case "last":
                return true;
        }
        $item = $this->InternalAttributes['item'];
        if ( is_array( $item ) )
        {
            return array_key_exists( $name, $item );
        }
        if ( is_object( $item ) && method_exists( $item, 'hasAttribute' ) )
        {
            return $item->hasAttribute( $name );
        }
        return false;
    }
319692
protected function checkCache($name)
    {
        if (!isset($this->cache[$name])) {
            try {
                $config = $this->db
                    ->from($this->table)
                    ->where($this->columns['name'])->eq($name)
                    ->select()
                    ->fetchAssoc()
                    ->first();
                if (!$config) {
                    return false;
                }

                $this->cache[$name] = new ArrayHelper(unserialize($config[$this->columns['data']]));
            } catch (PDOException $e) {
                return false;
            }
        }

        return true;
    }
961948
public function __isset($name)
    {
        $normalized = lcfirst($name);
        $property = "_{$normalized}";
        if (property_exists($this, $property)) {
            return true;
        }
        return false;
    }
607404
public function hasPrimaryKey()
    {
        if ($this->autoIncrement) {
            $empty = true;

            foreach ($this->keys as $key) {
                $empty = $empty && !$this->$key;
            }

            return !$empty;
        }

        $conditions = [];

        foreach ($this->getKeyName(true) as $key) {
            $conditions[$key] = $this->$key;
        }

        return $this->getDataMapper()->find($conditions);
    }
124922
public function hasDatabase($name)
    {
        foreach ($this->dbList as $db) {
            if ($db->getName() === $name) {
                return true;
            }
        }

        return false;
    }