Do you have data?
I think, the automatic object relation compares the data in the keyword fields, so just changing classes and templates will do not much. Enter the same keyword in at least 2 objects of your class and see, if the "relate automatically".