public function isRegistered($entity)
    {
        try {
            $entityId = $this->getEntityId($entity);

            return
                ($this->getEntityState($entity) == EntityStates::REGISTERED)
                || isset($this->entities[$this->getClassName($entity)][$entityId]);
        } catch (OrmException $e) {
            return false;
        }
    }
public function isRegistered($entity)
    {
        try {
            $entityId = $this->getEntityId($entity);

            return
                ($this->getEntityState($entity) == EntityStates::REGISTERED)
                || isset($this->entities[$this->getClassName($entity)][$entityId]);
        } catch (OrmException $e) {
            return false;
        }
    }
public function isRegistered ( $ entity ) { try { $ entityId = $ this -> getEntityId ( $ entity ) ; return ( $ this -> getEntityState ( $ entity ) == EntityStates :: REGISTERED ) || isset ( $ this -> entities [ $ this -> getClassName ( $ entity ) ] [ $ entityId ] ) ; } catch ( OrmException $ e ) { return false ; } }
Gets whether or not an entity is registered

@param   object $entity The entity to check

@return  bool  True if the entity is registered, otherwise false
Gets whether or not an entity is registered