Manager.php 532 Bytes
<?php 
/**
 * Manager
 *
 */

class Manager extends CActiveRecord
{
    /**
     * REST behavior
     */
    public function behaviors()
    {
        return array(
            'RestModelBehavior' => array(
                'class' => 'WRestModelBehavior',
            )
        );
    }
    
    public static function model($className=__CLASS__)
    {
        return parent::model($className);
    }
 
    public function tableName()
    {
        return 'users';
    }
    
	public function primaryKey()
	{
	    return 'id';
	}
}