Crud\Core\ProxyTrait::_entity PHP Method

_entity() protected method

Get a fresh entity instance from the primary Table
protected _entity ( array $data = null, array $options = [] ) : Cake\ORM\Entity
$data array Data array
$options array A list of options for the object hydration.
return Cake\ORM\Entity
    protected function _entity(array $data = null, array $options = [])
    {
        if ($this->_entity && empty($data)) {
            return $this->_entity;
        }
        return $this->_table()->newEntity($data, $options);
    }