diaspora/diaspora — comment on commit 42a93f94909f7f05f8d16101e88c3384b9a967b9
File:  line 0
By sarahmei:

I've seen people do this before - usually it's because they have an object that should be an active record object, but isn't. Doing this silences the warning about accessing the id field on the non-AR object.

The actual way to fix it is to find where you have a non-AR object, and make it an AR object. :)