36 lines
740 B
PHP
36 lines
740 B
PHP
|
|
<?php
|
||
|
|
class Address extends AppModel {
|
||
|
|
|
||
|
|
var $name = 'Address';
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
||
|
|
var $belongsTo = array(
|
||
|
|
'Customer' => array('className' => 'Customer',
|
||
|
|
'foreignKey' => 'customer_id',
|
||
|
|
'conditions' => '',
|
||
|
|
'fields' => '',
|
||
|
|
'order' => ''
|
||
|
|
),
|
||
|
|
|
||
|
|
'State' => array('className' => 'State',
|
||
|
|
'foreignKey' => 'state_id',
|
||
|
|
'conditions' => '',
|
||
|
|
'fields' => '',
|
||
|
|
'order' => ''),
|
||
|
|
|
||
|
|
'Country' => array('className' => 'Country',
|
||
|
|
'foreignKey' => 'country_id',
|
||
|
|
'conditions' => '',
|
||
|
|
'fields' => '',
|
||
|
|
'order' => ''
|
||
|
|
|
||
|
|
|
||
|
|
));
|
||
|
|
|
||
|
|
}
|
||
|
|
?>
|