git-svn-id: file:///svn-source/pmgr/branches/initial_20090526@15 97e9348a-65ac-dc4b-aefc-98561f571b83
31 lines
708 B
PHP
31 lines
708 B
PHP
<?php
|
|
class Payment extends AppModel {
|
|
|
|
var $name = 'Payment';
|
|
var $validate = array(
|
|
'id' => array('numeric'),
|
|
'receipt_id' => array('numeric'),
|
|
'payment_type_id' => array('numeric'),
|
|
'amount' => array('money')
|
|
);
|
|
|
|
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
|
var $belongsTo = array(
|
|
'Receipt' => array(
|
|
'className' => 'Receipt',
|
|
'foreignKey' => 'receipt_id',
|
|
'conditions' => '',
|
|
'fields' => '',
|
|
'order' => ''
|
|
),
|
|
'PaymentType' => array(
|
|
'className' => 'PaymentType',
|
|
'foreignKey' => 'payment_type_id',
|
|
'conditions' => '',
|
|
'fields' => '',
|
|
'order' => ''
|
|
)
|
|
);
|
|
|
|
}
|
|
?>
|