<?php

/**
 * RokGallery_Model_ProfileTable
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 */
class RokGallery_Model_ProfileTable extends RokCommon_Doctrine_Table
{
    /**
     * Returns an instance of this class.
     *
     * @return object RokGallery_Model_ProfileTable
     */
    public static function getInstance()
    {
        return Doctrine_Core::getTable('RokGallery_Model_Profile');
    }

    /**
     * @static
     * @throws Exception
     * @param  $id
     * @return RokGallery_Model_Profile
     */
    public static function getSingle($id)
    {
        try
        {
            $table = self::getInstance();
            return $table->find($id);
        }
        catch (Exception $e)
        {
            throw $e;
        }
    }
}