Boilerplate Resource Model Collection Class (CE 1.6 / EE 1.11 And After)

/**
 * Yourcompany.com
 *
 * PHP Version 5
 *
 * @category  Namespace
 * @package   Namespace_Module
 * @author    Your Name <your.name@yourcompany.com>
 * @copyright 2012 yourcompany.com
 * @license   http://www.yourcompany.com/license.txt Your license
 * @link      N/A
 */

/**
 * Something resource collection model
 *
 * @category Namespace
 * @package  Namespace_Module
 * @author   Your Name <your.name@yourcompany.com>
 * @license  http://www.yourcompany.com/license.txt Your license
 * @link     N/A
 */
class Namespace_Module_Model_Resource_Something_Collection
    extends Mage_Core_Model_Resource_Db_Collection_Abstract
{
    /**
     * Link domain model
     *
     * @return void
     */
    protected function _construct()
    {
        $this->_init('namespace_module/something');
    }
}

Mike Whitby almost 11 years ago