src/Core/ProxyTrait.php
protected function _entity(array $data = null, array $options = [])
    {
        if ($this->_entity && empty($data)) {
            return $this->_entity;
        }

        return $this->_table()->newEntity($data, $options);
    }
protected function _entity(array $data = null, array $options = [])
    {
        if ($this->_entity && empty($data)) {
            return $this->_entity;
        }

        return $this->_table()->newEntity($data, $options);
    }
protected function _entity ( array $ data = null , array $ options = [ ] ) { if ( $ this -> _entity && empty ( $ data ) ) { return $ this -> _entity ; } return $ this -> _table ( ) -> newEntity ( $ data , $ options ) ; }
Get a fresh entity instance from the primary Table

@param array $data Data array
@param array $options A list of options for the object hydration.
@return \Cake\ORM\Entity
Get a fresh entity instance from the primary Table