Convert Category module to Doctrine