Issue with storing an Entry I am trying to store an entry in a plugin. The entry has a field 'tags' that relates to another entry. I am trying to store it with the following code.  

$newsItem = new EntryModel();
$newsItem-&gt;sectionId = craft()-&gt;sections-&gt;getSectionByHandle('news')-&gt;id;
$newsItem-&gt;getContent()-&gt;tags = $tag-&gt;id;
craft()-&gt;entries-&gt;saveEntry($newsItem);


When I var_dump(craft()-&gt;entries-&gt;saveEntry($newsItem)) I get a false response. 

Also, in this situation we cannot use the method setContentFromPost() so we need to do it from within the plugin and not from a front-end form.
Not sure if there is more to your code or not but looks like you need to set the title as well as other required fields. In addition the entries field is expecting an array of entryIds.

Here is a link to the saveEntry method in the EntriesService, which shows the required fields:
https://craftcms.com/classreference/services/EntriesService#saveEntry-detail

This answer is somewhat similar in that they are relating an entry, but you can see that the entryField is being set with an array.

How do I relate a user to a channel entry from a form?