protected static function mapper(array $row, $alias = 'feedback') { $model = new \Rebond\Core\Feedback\Model(false); if (isset($row[$alias . 'Id'])) { $model->setId($row[$alias . 'Id']); } if (isset($row[$alias . 'UserId'])) { $model->setUserId($row[$alias . 'UserId']); $model->setUser(\Rebond\Core\User\Data::join($row, $alias . '_user')); } if (isset($row[$alias . 'Title'])) { $model->setTitle($row[$alias . 'Title']); } if (isset($row[$alias . 'Type'])) { $model->setType($row[$alias . 'Type']); } if (isset($row[$alias . 'Description'])) { $model->setDescription($row[$alias . 'Description']); } if (isset($row[$alias . 'Status'])) { $model->setStatus($row[$alias . 'Status']); } if (isset($row[$alias . 'CreatedDate'])) { $model->setCreatedDate($row[$alias . 'CreatedDate']); } if (isset($row[$alias . 'ModifiedDate'])) { $model->setModifiedDate($row[$alias . 'ModifiedDate']); } return $model; }