public function remove($object)
    {
        if (!is_object($object) || !($object instanceof $this->objectType)) {
            $type = (is_object($object) ? get_class($object) : gettype($object));
            throw new IllegalObjectTypeException('The value given to remove() was ' . $type . ' , however the ' . get_class($this) . ' can only handle ' . $this->objectType . ' instances.', 1517408067);
        }
        $this->entityManager->remove($object);
    }
public function remove($object)
    {
        if (!is_object($object) || !($object instanceof $this->objectType)) {
            $type = (is_object($object) ? get_class($object) : gettype($object));
            throw new IllegalObjectTypeException('The value given to remove() was ' . $type . ' , however the ' . get_class($this) . ' can only handle ' . $this->objectType . ' instances.', 1517408067);
        }
        $this->entityManager->remove($object);
    }
public function remove ( $ object ) { if ( ! is_object ( $ object ) || ! ( $ object instanceof $ this -> objectType ) ) { $ type = ( is_object ( $ object ) ? get_class ( $ object ) : gettype ( $ object ) ) ; throw new IllegalObjectTypeException ( 'The value given to remove() was ' . $ type . ' , however the ' . get_class ( $ this ) . ' can only handle ' . $ this -> objectType . ' instances.' , 1517408067 ) ; } $ this -> entityManager -> remove ( $ object ) ; }
Removes an object from this repository.

@param object $object The object to remove
@return void
@throws IllegalObjectTypeException
@api
Removes an object from this repository .