check objects state while processing many-to-many