The $config array understands the following keys:
- table: Name of the database table to represent
- alias: Alias to be assigned to this table (default to table name)
- connection: The connection instance to use
- entityClass: The fully namespaced class name of the entity class that will
represent rows in this table.
- schema: A \Cake\Database\Schema\Table object or an array that can be
passed to it.
- eventManager: An instance of an event manager to use for internal events
- behaviors: A BehaviorRegistry. Generally not used outside of tests.
- associations: An AssociationCollection instance.
- validator: A Validator instance which is assigned as the "default"
validation set, or an associative array, where key is the name of the
validation set and value the Validator instance.
public __construct ( array $config = [] ) | ||
$config | array | List of options for this table |