Attach collection name and context to model