Work correctly with foreign key not matching class name