Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- # ...
- $entry = newEntryModel();
- # set the sectionId, typeId, authorId, and some other fields...
- $entry->getContent()->merchant = (isset($data['merchant']) ? [$data['merchant']->id] : null; // $data['merchant'] is an EntryModel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement