lithium\data\Entity::__construct()
Overrides
lithium\core\Object::__construct()
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 tonull
.
Returns
voidSource
public function __construct(array $config = array()) {
$defaults = array('model' => null, 'data' => array(), 'relationships' => array());
parent::__construct($config + $defaults);
}