lithium\data\Entity::__construct PHP Method

__construct() public method

Constructor.
public __construct ( array $config = [] ) : void
$config array 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`.
return void
    public function __construct(array $config = array())
    {
        $defaults = array('model' => null, 'data' => array(), 'relationships' => array());
        parent::__construct($config + $defaults);
    }