2009-01-13 05:13:18 +00:00
|
|
|
<?php
|
|
|
|
|
class Product extends AppModel {
|
|
|
|
|
|
|
|
|
|
var $name = 'Product';
|
|
|
|
|
|
|
|
|
|
|
2009-09-10 03:23:39 +00:00
|
|
|
var $hasMany = array('ProductAttachment', 'ProductOptionsCategory');
|
2009-01-13 05:13:18 +00:00
|
|
|
|
|
|
|
|
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
|
|
|
|
var $belongsTo = array(
|
|
|
|
|
'Principle' => array('className' => 'Principle',
|
|
|
|
|
'foreignKey' => 'principle_id',
|
|
|
|
|
'conditions' => '',
|
|
|
|
|
'fields' => '',
|
|
|
|
|
'order' => ''
|
2009-03-19 22:11:22 +00:00
|
|
|
),
|
|
|
|
|
|
2009-11-20 04:27:07 +00:00
|
|
|
|
2009-01-13 05:13:18 +00:00
|
|
|
);
|
2011-09-01 07:42:32 +00:00
|
|
|
|
2009-01-13 05:13:18 +00:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
?>
|