/**
  * Populate Element Model
  *
  */
 public function populateElementModel($row, $normalize = false)
 {
     $entry = FormBuilder2_EntryModel::populateModel($row);
     if ($normalize) {
         $entry = $entry->_normalizeDataForElementsTable();
     }
     return $entry;
 }
 public function getEntryById($entryId)
 {
     $entryRecord = FormBuilder2_EntryRecord::model()->findByAttributes(array('id' => $entryId));
     $entry = FormBuilder2_EntryModel::populateModel($entryRecord);
     return $entry;
 }