lithium\data\source\http\adapter\CouchDb::configureClass PHP Method

configureClass() public method

Configures a model class by setting the primary key to 'id', in keeping with CouchDb conventions.
See also: lithium\data\Model::$_meta
See also: lithium\data\Model::$_classes
public configureClass ( string $class ) : Returns
$class string The fully-namespaced model class name to be configured.
return Returns an array containing keys `'classes'` and `'meta'`, which will be merged with their respective properties in `Model`.
    public function configureClass($class)
    {
        return array('classes' => $this->_classes, 'meta' => array('key' => 'id', 'locked' => false), 'schema' => array('id' => array('type' => 'string'), 'rev' => array('type' => 'string')));
    }