A QCodo powered CMS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
698 B

  1. protected function <%= $objCodeGen->FormControlVariableNameForManyToManyReference($objManyToManyReference); %>_Update() {
  2. if ($this-><%= $strControlId %>) {
  3. $this-><%= $strObjectName %>->UnassociateAll<%= $objManyToManyReference->ObjectDescriptionPlural %>();
  4. $objSelectedListItems = $this-><%= $strControlId %>->SelectedItems;
  5. if ($objSelectedListItems) foreach ($objSelectedListItems as $objListItem) {
  6. $this-><%= $strObjectName %>->Associate<%= $objManyToManyReference->ObjectDescription %>(<%= $objManyToManyReference->VariableType %>::Load($objListItem->Value));
  7. }
  8. }
  9. }