Supported params for $config are:
- db = user-supplied instance of database connector,
or key name of registry instance.
- name = table name.
- primary = string or array of primary key(s).
- rowClass = row class name.
- rowsetClass = rowset class name.
- referenceMap = array structure to declare relationship
to parent tables.
- dependentTables = array of child tables.
- metadataCache = cache for information from adapter describeTable().