Shouldn't the entity get an id set to it?