fixed Repository::createEntity() to match Entity constructor