Files
pmgr/models/payment_type.php
2009-05-28 05:49:03 +00:00

29 lines
647 B
PHP

<?php
class PaymentType extends AppModel {
var $name = 'PaymentType';
var $validate = array(
'id' => array('numeric'),
'name' => array('notempty'),
'tillable' => array('boolean')
);
//The Associations below have been created with all possible keys, those that are not needed can be removed
var $hasMany = array(
'Payment' => array(
'className' => 'Payment',
'foreignKey' => 'payment_type_id',
'dependent' => false,
'conditions' => '',
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'exclusive' => '',
'finderQuery' => '',
'counterQuery' => ''
)
);
}
?>