public function collectionToArray($collection, $title = 'title')
     {
         $array = array();
         foreach ($collection as $item) {
             $getter = 'get'.ucfirst($title);
             $array[$item->getId()] = $item->$getter();
         }

         return $array;
     }