final public function deleteObject(Model $object)
    {
        if ($object->isNewRecord()) {
            return;
        }

        $this->onObjectDeleted($object);

        $this->deleteObjectFromCache($object);
    }
final public function deleteObject(Model $object)
    {
        if ($object->isNewRecord()) {
            return;
        }

        $this->onObjectDeleted($object);

        $this->deleteObjectFromCache($object);
    }
final public function deleteObject ( Model $ object ) { if ( $ object -> isNewRecord ( ) ) { return ; } $ this -> onObjectDeleted ( $ object ) ; $ this -> deleteObjectFromCache ( $ object ) ; }
Delete's a model from the repository.

Calls onObjectDeleted afterwards which most repositories extend to do the actual deletion.

@see onObjectDeleted()
@param Model $object
Delete s a model from the repository .