<?php

require_once 'SwatDB/SwatDBRecordsetWrapper.php';
require_once 'Building/dataobjects/BuildingBlock.php';

/**
 * Wrapper for BuildingBlock objects
 *
 * @package   Building
 * @copyright 2014-2016 silverorange
 * @license   http://www.opensource.org/licenses/mit-license.html MIT License
 * @see       BuildingBlock
 */
class BuildingBlockWrapper extends SwatDBRecordsetWrapper
{
	// {{{ protected function init()

	protected function init()
	{
		parent::init();
		$this->row_wrapper_class = 'BuildingBlock';
		$this->index_field = 'id';
	}

	// }}}
}

?>

<?php

require_once 'SwatDB/SwatDBRecordsetWrapper.php';
require_once 'Building/dataobjects/BuildingBlock.php';

/**
 * Wrapper for BuildingBlock objects
 *
 * @package   Building
 * @copyright 2014-2016 silverorange
 * @license   http://www.opensource.org/licenses/mit-license.html MIT License
 * @see       BuildingBlock
 */
class BuildingBlockWrapper extends SwatDBRecordsetWrapper
{
	// {{{ protected function init()

	protected function init()
	{
		parent::init();
		$this->row_wrapper_class = SwatDBClassMap::get('BuildingBlock');
		$this->index_field = 'id';
	}

	// }}}
}

?>

Use SwatDBClassMap to set the row class.
Use SwatDBClassMap to set the row class.
