Skip to content

Commit

Permalink
TE-10483: Fixed remaining issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro Dymarchuk committed Mar 27, 2022
1 parent 0262aa1 commit e23601c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ protected function getRelation(EntityTransferInterface $entityTransfer, $relatio
*/
protected function createEntityQueryClass(RelationMap $relationMap)
{
return PropelQuery::from($relationMap->getRightTable()->getClassName());
return PropelQuery::from($relationMap->getRightTableOrFail()->getClassNameOrFail());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function format(?DataFetcherInterface $dataFetcher = null)
}

foreach ($items as $item) {
$entityName = $this->getTableMap()->getPhpName();
$entityName = $this->getTableMap()->getPhpNameOrFail();
$entityTransfer = $this->mapArrayToEntityTransfer($entityName, $item);
$collection[] = $entityTransfer;
}
Expand Down Expand Up @@ -92,7 +92,7 @@ public function formatOne(?DataFetcherInterface $dataFetcher = null)
}

if ($item) {
$entityName = $this->getTableMap()->getPhpName();
$entityName = $this->getTableMap()->getPhpNameOrFail();
$result = $this->mapArrayToEntityTransfer($entityName, $item);
}

Expand Down

0 comments on commit e23601c

Please sign in to comment.