Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- model/customer.php
- <?php
- class Customer extends AppModel {
- var $name = 'Customer';
- var $actsAs = array('Containable');
- var $validate = array(
- 'number' => array('notempty'),
- 'name' => array('notempty')
- );
- //The Associations below have been created with all possible keys, those that are not needed can be removed
- var $hasMany = array(
- 'Contact' => array(
- 'className' => 'Contact',
- 'foreignKey' => 'customer_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'exclusive' => '',
- 'finderQuery' => '',
- 'counterQuery' => ''
- ),
- 'Serial' => array(
- 'className' => 'Serial',
- 'foreignKey' => 'customer_id',
- 'dependent' => false,
- 'conditions' => '',
- 'fields' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => '',
- 'exclusive' => '',
- 'finderQuery' => '',
- 'counterQuery' => ''
- )
- );
- }
- ?>
Add Comment
Please, Sign In to add comment