Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • It would be nice if this worked with virtual attributes. like creator.profile Commented Jun 5, 2014 at 7:31
  • if user has some virtual attributes they are not included. Commented Jul 13, 2014 at 19:59
  • This worked for me although I had some problems when I tried to set the reference to null just before I saved. After the save, calling Book.populate incorrectly populated the field with the previous reference value and I can't work out why. The DB successfully contains the null. Commented Oct 2, 2014 at 23:31
  • 2
    And this will not re-query the database?! Commented Feb 2, 2015 at 22:08
  • 11
    this is re-querying the database Commented Jan 29, 2016 at 23:27