protected function newEditType()
 {
     $type = parent::newEditType();
     $datasource = $this->newDatasource()->setViewer($this->getViewer());
     $type->setDatasource($datasource);
     return $type;
 }
 protected function newEditType()
 {
     $type = parent::newEditType();
     if ($this->getUseEdgeTransactions()) {
         $datasource = $this->newDatasource()->setViewer($this->getViewer());
         $type->setDatasource($datasource);
     }
     return $type;
 }