Example #1
0
 /**
  * Remove items from this association (withought deleteing it) and persist the data in the database
  * @param  Jam_Validated                $model
  * @param  Jam_Array_Association $collection
  */
 public function clear(Jam_Validated $model, Jam_Array_Association $collection)
 {
     foreach ($collection as $item) {
         $item->{$this->foreign_key} = NULL;
     }
     parent::clear($model, $collection);
 }