Creates a new record object with default values.
Options defined: - '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`.

Parameters

  • array $config

Returns

object Record object.

Source

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