lithium\data\source\MongoDb::configureClass PHP 메소드

configureClass() 공개 메소드

Configures a model class by overriding the default dependencies for 'set' and 'entity' , and sets the primary key to '_id', in keeping with Mongo's conventions.
또한 보기: lithium\data\Model::$_meta
또한 보기: lithium\data\Model::$_classes
public configureClass ( string $class ) : Returns
$class string The fully-namespaced model class name to be configured.
리턴 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, 'schema' => array(), 'meta' => array('key' => '_id', 'locked' => false));
    }