<?php
/*
OsShare v1 ,
Coded By Paimpozhil B. , SaravanaKumar M.S.
*/
class Profile extends AppModel {
var $name = 'Profile';
var $validate = array(
'id' => VALID_NUMBER,
'FirstName' => VALID_NOT_EMPTY,
'user_id' => VALID_NUMBER,
);
var $hasMany = array(
'Procomment' => array('className' => 'Procomment',
'foreignKey' => 'profile_id',
'dependent' => true
));
//The Associations below have been created with all possible keys, those that are not needed can be removed
var $belongsTo = array(
'User' => array('className' => 'User',
'foreignKey' => 'user_id',
'conditions' => '',
'fields' => '',
'order' => '',
'counterCache' => ''),
);
}
?>