Converted CategoryMapper to ZF2's table gateway