lithium\data\source\mongo_db\Schema::__construct()

public method

Constructor.

Parameters

  • array $config

    Available configuration options are:

    • 'fields' array

Returns

void

Source

	public function __construct(array $config = array()) {
		$defaults = array('fields' => array('_id' => array('type' => 'id')));
		parent::__construct(array_filter($config) + $defaults);
	}