. */ namespace App\Repository\Parts; use App\Repository\AbstractPartsContainingRepository; class MeasurementUnitRepository extends AbstractPartsContainingRepository { public function getParts(object $element, array $order_by = ['name' => 'ASC']): array { return $this->getPartsByField($element, $order_by, 'partUnit'); } public function getPartsCount(object $element): int { return $this->getPartsCountByField($element, 'partUnit'); } }