use pattern Generic DAO  in PHP with codeigniter and  Doctrine 2