lithium\data\entity\Document::_relation()
Instantiates a new Document object as a descendant of the current object, and sets all
default values and internal state.
Parameters
-
string
$classTypeThe type of class to create, either
'entity'or'set'. -
string
$keyThe key name to which the related object is assigned.
-
array
$dataThe internal data of the related object.
-
array
$optionsAny other options to pass when instantiating the related object.
Returns
objectReturns a new Document object instance.
Source
protected function _relation($classType, $key, $data, $options = []) {
return parent::_relation($classType, $key, $data, ['exists' => false] + $options);
}