src/UnitOfWork.php
public function getOriginalEntityState($id)
    {
        if (isset($this->entityStateReferences[$id])) {
            return $this->entityStateReferences[$id];
        }

        return null;
    }
public function getOriginalEntityState($id)
    {
        if (isset($this->entityStateReferences[$id])) {
            return $this->entityStateReferences[$id];
        }

        return null;
    }
public function getOriginalEntityState ( $ id ) { if ( isset ( $ this -> entityStateReferences [ $ id ] ) ) { return $ this -> entityStateReferences [ $ id ] ; } return null ; }
Get the original state of an entity when it was loaded from the database.

@param int $id

@return object|null
Get the original state of an entity when it was loaded from the database .