Guest User

Untitled

a guest
Jun 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. model/customer.php
  2.  
  3. <?php
  4. class Customer extends AppModel {
  5.  
  6. var $name = 'Customer';
  7. var $actsAs = array('Containable');
  8. var $validate = array(
  9. 'number' => array('notempty'),
  10. 'name' => array('notempty')
  11. );
  12.  
  13. //The Associations below have been created with all possible keys, those that are not needed can be removed
  14. var $hasMany = array(
  15. 'Contact' => array(
  16. 'className' => 'Contact',
  17. 'foreignKey' => 'customer_id',
  18. 'dependent' => false,
  19. 'conditions' => '',
  20. 'fields' => '',
  21. 'order' => '',
  22. 'limit' => '',
  23. 'offset' => '',
  24. 'exclusive' => '',
  25. 'finderQuery' => '',
  26. 'counterQuery' => ''
  27. ),
  28. 'Serial' => array(
  29. 'className' => 'Serial',
  30. 'foreignKey' => 'customer_id',
  31. 'dependent' => false,
  32. 'conditions' => '',
  33. 'fields' => '',
  34. 'order' => '',
  35. 'limit' => '',
  36. 'offset' => '',
  37. 'exclusive' => '',
  38. 'finderQuery' => '',
  39. 'counterQuery' => ''
  40. )
  41. );
  42.  
  43. }
  44. ?>
Add Comment
Please, Sign In to add comment