Use Doctrine2 instead of Codeigniter ActiveRecord.