lithium\data\Entity::__construct()

public method

Constructor.

Parameters

  • array $config

    Available configuration options are:

    • 'data' array: Data to enter into the record. Defaults to an empty array.
    • 'model' string: Class name that provides the data-source for this record. Defaults to null.

Returns

void

Source

	public function __construct(array $config = array()) {
		$defaults = array('model' => null, 'data' => array(), 'relationships' => array());
		parent::__construct($config + $defaults);
	}