Paradox/toolbox/TransactionManager.php
public function addReadCollection($collection)
    {
        if (!$this->_activeTransaction) {
            throw new TransactionManagerException("There is no active transaction.");
        }

        if (!in_array($collection, $this->_collections['read'])) {
            $this->_collections['read'][] = $collection;
        }
    }
public function addReadCollection($collection)
    {
        if (!$this->_activeTransaction) {
            throw new TransactionManagerException("There is no active transaction.");
        }

        if (!in_array($collection, $this->_collections['read'])) {
            $this->_collections['read'][] = $collection;
        }
    }
Add a collection that will be locked for reading.
@param string $collection The name of the collection.