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 = []) {
		$defaults = ['fields' => ['_id' => ['type' => 'id']]];
		parent::__construct(array_filter($config) + $defaults);
	}