Esempio n. 1
0
 public function onSave()
 {
     parent::onSave();
     // save the Pages field
     $data = $this->getData();
     \Meta\Db::saveAssociated('group_pages', 'group_id', $this->getRecordId(), 'page', $data['pages']);
 }
Esempio n. 2
0
 public function onSave()
 {
     parent::onSave();
     // save Groups field
     $data = $this->getData();
     \Meta\Db::saveAssociated('user_groups', 'user_id', $this->getRecordId(), 'group_id', $data['groups']);
 }