lithium\data\Source::configureClass PHP Method

configureClass() public method

A method which can be optionally implemented to configure a model class.
See also: lithium\data\Model::$_meta
See also: lithium\data\Model::$_finders
See also: lithium\data\Model::$_classes
public configureClass ( string $class ) : array
$class string The name of the model class to be configured.
return 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.
    public function configureClass($class)
    {
        return array('classes' => $this->_classes, 'meta' => array('key' => 'id', 'locked' => true));
    }