Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. <?php
  2. # ...
  3. $entry = newEntryModel();
  4. # set the sectionId, typeId, authorId, and some other fields...
  5. $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