protected function postCommit()
    {
        /** @var IDataMapper $dataMapper */
        foreach ($this->dataMappers as $className => $dataMapper) {
            if ($dataMapper instanceof ICachedSqlDataMapper) {
                // Now that the database writes have been committed, we can write to cache
                /** @var ICachedSqlDataMapper $dataMapper */
                $dataMapper->commit();
            }
        }
    }
protected function postCommit()
    {
        /** @var IDataMapper $dataMapper */
        foreach ($this->dataMappers as $className => $dataMapper) {
            if ($dataMapper instanceof ICachedSqlDataMapper) {
                // Now that the database writes have been committed, we can write to cache
                /** @var ICachedSqlDataMapper $dataMapper */
                $dataMapper->commit();
            }
        }
    }
protected function postCommit ( ) { /** @var IDataMapper $dataMapper */ foreach ( $ this -> dataMappers as $ className => $ dataMapper ) { if ( $ dataMapper instanceof ICachedSqlDataMapper ) { // Now that the database writes have been committed, we can write to cache /** @var ICachedSqlDataMapper $dataMapper */ $ dataMapper -> commit ( ) ; } } }
Performs any actions after the commit
Performs any actions after the commit