emberjs/data — pull request #637 by sandstrom (2013-01-17 08:52:06+00:00)
Title: Extract embedded `belongsTo` records properly

Fix a bug where embedded records two levels (or more) aren't properly materialised under some circumstances. The problem occurs when records are embedded within a `belongsTo` relationship.

The `sideload` method doesn't consider relationships/embedded records, by using
`extractRecordRepresentation` we'll recurse into the record (similarly
to `extractEmbeddedHasMany`).