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
$classType
The type of class to create, either
'entity'
or'set'
. -
string
$key
The key name to which the related object is assigned.
-
array
$data
The internal data of the related object.
-
array
$options
Any 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);
}