Extends
lithium\data\Entity
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
object Returns a new `Document` object instance.Source
protected function _relation($classType, $key, $data, $options = array()) {
return parent::_relation($classType, $key, $data, array('exists' => false) + $options);
}