public function addWriteCollection($collection)
    {
        if (!$this->_activeTransaction) {
            throw new TransactionManagerException("There is no active transaction.");
        }

        if (!in_array($collection, $this->_collections['write'])) {
            $this->_collections['write'][] = $collection;
        }
    }