35 lines
855 B
PHP
Executable file
35 lines
855 B
PHP
Executable file
<?php
|
|
class State extends AppModel {
|
|
|
|
var $name = 'State';
|
|
|
|
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
|
var $hasMany = array(
|
|
'Address' => array('className' => 'Address',
|
|
'foreignKey' => 'state_id',
|
|
'dependent' => false,
|
|
'conditions' => '',
|
|
'fields' => '',
|
|
'order' => '',
|
|
'limit' => '',
|
|
'offset' => '',
|
|
'exclusive' => '',
|
|
'finderQuery' => '',
|
|
'counterQuery' => ''
|
|
),
|
|
'Enquiry' => array('className' => 'Enquiry',
|
|
'foreignKey' => 'state_id',
|
|
'dependent' => false,
|
|
'conditions' => '',
|
|
'fields' => '',
|
|
'order' => '',
|
|
'limit' => '',
|
|
'offset' => '',
|
|
'exclusive' => '',
|
|
'finderQuery' => '',
|
|
'counterQuery' => ''
|
|
)
|
|
);
|
|
|
|
}
|
|
?>
|