Fix undefined container on hasMany relationship records. Part Fix #328
Merge pull request #332 from ckung/master

Fix undefined container on hasMany relationship records. Part Fix #328