Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($res = $modx->getIterator('ModParams', array('gid' => $good_id))) {
- foreach ($res as $v) {
- $tmp = $modx->newObject('ModParams');
- $tmp->fromArray($v->toArray());
- $tmp->set('id', 0);
- $tmp->set('gid', $id);
- $tmp->save();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement