예제 #1
0
 /**
  * Deletes the persistent state of the given entity.
  * 
  * @param object $entity
  */
 public function delete($entity)
 {
     $this->_errorIfClosed();
     $this->_unitOfWork->delete($entity);
     if ($this->_flushMode == self::FLUSHMODE_IMMEDIATE) {
         $this->flush();
     }
 }