<?php

App::uses('Model', 'Model');

/**
 * Application model for Cake.
 *
 * Add your application-wide methods in the class below, your models
 * will inherit them.
 *
 * @package       app.Model
 */

class UserTarget extends AppModel {


	public $belongsTo = array(
						'User' => array('className' => 'User', 'foreignKey' => 'user_id',  'fields'=>array('id', 'first_name','last_name'),'type'=>'left'),
						
						'BrandGroup' => array('className' => 'BrandGroup', 'counterCache' => 'count', 'foreignKey' => 'brand_group_id',  'fields'=>array('id', 'name','brand_count'),'type'=>'left'),
						
			);
			

}