Accept related objects when creating instance #247
Fix injection in ids