2009-01-12 21:13:18 -08:00
|
|
|
<?php
|
|
|
|
|
class ProductOption extends AppModel {
|
|
|
|
|
|
|
|
|
|
var $name = 'ProductOption';
|
|
|
|
|
|
|
|
|
|
|
2009-09-09 20:23:39 -07:00
|
|
|
var $belongsTo = array('ProductOptionsCategory');
|
2009-01-12 21:13:18 -08:00
|
|
|
|
2009-09-10 19:50:16 -07:00
|
|
|
|
|
|
|
|
/* Logic to enforce only 1 default option.
|
|
|
|
|
* If the option being saved claims to be the default, set any other options in that category
|
|
|
|
|
* that are already default == 1 , to be false.
|
|
|
|
|
*
|
|
|
|
|
*/
|
2009-12-16 12:50:48 -08:00
|
|
|
|
2009-09-10 19:50:16 -07:00
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
}
|