lithium\data\Source::configureClass()

public method

A method which can be optionally implemented to configure a model class.

Parameters

  • string $class

    The name of the model class to be configured.

Returns

array

This method should return an array one or more of the following keys: 'meta', 'classes' or 'finders'. These keys maps to the three corresponding properties in lithium\data\Model, and are used to override the base-level default settings and dependencies.

Source

	public function configureClass($class) {
		return [
			'classes' => $this->_classes,
			'meta' => ['key' => 'id', 'locked' => true]
		];
	}