refactor get_topic_by_postmsgid method to Doctrine (untested)